Title

06 2021 档案

摘要:CF 1095C Powers Of Two(二进制拆分) A positive integer xx is called a power of two if it can be represented as x=2y, where y is a non-negative integer. So, 阅读全文
posted @ 2021-06-14 11:21 BeautifulWater 阅读(149) 评论(0) 推荐(0)
摘要:#小技巧——二进制转换 二进制转换一——递归 #include<iostream> using namespace std; int cnt=0; void ten_2_bi(int k,int a[]) { if(k!=0) { ten_2_bi(k>>1,a); a[cnt++]=k%2; co 阅读全文
posted @ 2021-06-14 10:25 BeautifulWater 阅读(135) 评论(0) 推荐(0)
摘要:位运算 位运算符的分类 与运算(&) 或运算(|) 异或(^)不同为1, 取反(~) 左移(<<) 右移(>>) https://www.cnblogs.com/RioTian/p/13598747.html ###&🐟与运算 两个对应位位1才为一,其它三种情况都为0 ##应用 ###应用——判断 阅读全文
posted @ 2021-06-06 09:52 BeautifulWater 阅读(70) 评论(0) 推荐(0)