规律题,答案是 x^y 。
#include<bits/stdc++.h> #define int long long using namespace std; signed main(){ int T; cin>>T; while(T--){ int x,y; cin>>x>>y; cout<<(x xor y)<<"\n"; } return 0; }
註冊一個 CZOJ 通用賬戶,您就可以在我們提供的所有線上評測服務上提交程式碼、參與討論。
使用您的 CZOJ 通用賬戶