fork download
  1. /*
  2. * Author: Geeza
  3.  */
  4.  
  5. #include <bits/stdc++.h>
  6.  
  7. #define ld long double
  8. #define ll long long
  9. #define pb push_back
  10. #define fin(a, n) for(int i = a; i < n; i++)
  11. #define fjn(a, n) for(int j = a; j < n; j++)
  12. #define all(a) a.begin(),a.end()
  13. #define allr(a) a.rbegin(),a.rend()
  14. #define FAST ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr)
  15.  
  16. using namespace std;
  17.  
  18. const double PI = acos(-1);
  19. const int N = 2e3+10;
  20. const ll oo = 0x3f3f3f3f3f3f3f3f;
  21. const int MOD = 1000000007, inf = 1e6;
  22.  
  23. string di[] = {"D","L", "U", "R", "UL", "UR", "DL", "DR"};
  24. int dx[] = {+1, +0, +0, -1, -1, -1, +1, +1};
  25. int dy[] = {+0, -1, +1, +0, -1, +1, -1, +1};
  26. char dc[] = {'D', 'L', 'R', 'U'};
  27.  
  28.  
  29. void solve() {
  30. int a, b; cin >> a >> b;
  31. a ^= b;
  32. cout << a << "\n";
  33. }
  34.  
  35. int main() {
  36. FAST;
  37. #ifndef ONLINE_JUDGE
  38. freopen("input.txt", "r", stdin);
  39. freopen("output.txt", "w", stdout);
  40. #endif
  41. int tt = 1; cin >> tt;
  42. while (tt--) {
  43. solve();
  44. //cout << "Case #" << c++ << ": ";
  45. }
  46. return 0;
  47. }
Success #stdin #stdout 0.01s 5316KB
stdin
Standard input is empty
stdout
0