摘要: ABC 签到,过水已隐藏 D 做完第一次操作后数字只有2e5,位数很小,可以直接模拟了 #include<bits/stdc++.h> using namespace std; const int N=2e5+7; int n,n1,s1,s2,a[N],pw1[N],pw2[N]; char ch 阅读全文
posted @ 2020-07-11 21:51 hfctf0210 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 虽然CSP没过初赛没参加,但我还是想写一下题解 D1T1格雷码 按位考虑答案,第i位即为k xor [k/2]的第i位 #include<bits/stdc++.h> using namespace std; unsigned long long n,k; int main() { cin>>n>> 阅读全文
posted @ 2020-07-11 08:56 hfctf0210 阅读(215) 评论(0) 推荐(0) 编辑