0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-10 05:18:49 +00:00

CF1421A XORwice

R40360103
This commit is contained in:
Baoshuo Ren 2020-10-23 20:15:32 +08:00 committed by Baoshuo Ren
parent f91f4de358
commit 07eb0d6a28
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

View File

@ -0,0 +1,13 @@
#include<bits/stdc++.h>
using namespace std;
int main() {
int t, a, b;
cin >> t;
while(t--) {
cin >> a >> b;
cout << a + b - (a & b) * 2 << endl;
}
return 0;
}