mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-11 22:06:27 +00:00
14 lines
198 B
C++
14 lines
198 B
C++
|
#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;
|
||
|
}
|