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