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;
|
|
|
|
}
|