aboutsummaryrefslogtreecommitdiff
path: root/LonelyInteger/LonelyInteger.cpp
blob: a5ce4a4f94d8dc32cfbeac7b2f1340368708ad81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include<bits/stdc++.h>
using namespace std;
int main(){
  int n, x = 0, k;
  cin >> n;
  for(int i = 0; i < n; i++){
    cin >> k;
    x ^= k;
  }
  cout << x;
  return 0;
}