0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-14 03:18:48 +00:00
OI-codes/Luogu/CF1421A/CF1421A.cpp

14 lines
200 B
C++
Raw Normal View History

2021-11-19 09:01:13 +00:00
#include <bits/stdc++.h>
2020-10-23 12:15:32 +00:00
using namespace std;
int main() {
int t, a, b;
cin >> t;
2021-11-19 09:01:13 +00:00
while (t--) {
2020-10-23 12:15:32 +00:00
cin >> a >> b;
cout << a + b - (a & b) * 2 << endl;
}
return 0;
}