摘要:
7-1 自动编程 签到题 #include<bits/stdc++.h> typedef long long ll; const int maxm = 1e5 + 5; const int infmax = INT_MAX; const int infmin = INT_MIN; using nam 阅读全文
摘要:
from : acwing #include <bits/stdc++.h> using namespace std; const int N = 100001; int n, m; int tree[N], a[N]; int lowbit(int x){ return x & -x; } voi 阅读全文
摘要:
不是连续子串 #include<bits/stdc++.h> using namespace std; int a[1005], dp[1005]; int main(){ int n; cin >> n; for(int i = 1; i <= n; i ++ ) cin >> a[i]; int 阅读全文
摘要:
二进制颠倒用位运算 uint32_t reverseBits(uint32_t n) { uint32_t res = 0; for (int i = 0; i < 32; i ++ ) res = (res << 1) + (n >> i & 1);//n >> i & 1可以得到n二进制的第i位 阅读全文