随笔分类 - 位运算
摘要:#include <bits/stdc++.h> using namespace std; const int N = 1e4 + 20; int son[N * 31][2], cnt[N * 31]; int idx; void insert(int x) { int p = 0; for(in
阅读全文
摘要:G.Greater and Greater - 2020牛客暑期多校训练营(第二场) (位运算,二分查找) 题目下载:https://files.cnblogs.com/files/popodynasty/G.Greater_and_Greater.pdf.zip 题目大意 给定两个数列A、B,其中
阅读全文
摘要:C++类库 <bitset> 引用时声明 #include <bitset> 运用此容器可以方便的对二进制数进行位运算 声明 bitset 对象 可以如下声明一个该类型变量: bitsetvarm (M) 其中varm为变量名。 N表示该类型二进制位数。如 N = 1,那么a = 0 或 1 ; N
阅读全文