Advertisement
STANAANDREY

compP chal1 19/12/2019

Dec 19th, 2019
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. #define newline '\n'
  3. #define uns unsigned
  4. #define ll long long
  5. #define deb(x) clog << x << ' '
  6. #define debnewL(x) clog << x << newline
  7. using namespace std;
  8. ///*********************
  9.  
  10. int main()
  11. {
  12.     int n, ans;
  13.     cin >> n;
  14.     cin >> ans;//x1
  15.     for (int i = 1; i <= n * 2; i++)
  16.     {
  17.         int x;
  18.         cin >> x;
  19.         ans ^= x;
  20.     }
  21.  
  22.     cout << ans;
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement