总结:自己还是太弱了,只做了签到题。聚聚们太强了。
题目地址:hdu
1001 : ^ & ^ (签到题)
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
const int N = 100010;
unsigned int a, b;
int main()
{
int t;
cin>> t;
while(t--){
cin>> a >> b;
LL res = a & b;
if(!res) cout << 1 << endl;
else cout<< res << endl;
}
return 0;
}
1002: array
1003:K-th occurrence
题解:
- 代码:代码在这