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,
阅读全文
摘要:#小技巧——二进制转换 二进制转换一——递归 #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
阅读全文
摘要:位运算 位运算符的分类 与运算(&) 或运算(|) 异或(^)不同为1, 取反(~) 左移(<<) 右移(>>) https://www.cnblogs.com/RioTian/p/13598747.html ###&🐟与运算 两个对应位位1才为一,其它三种情况都为0 ##应用 ###应用——判断
阅读全文

浙公网安备 33010602011771号