C++ :
#include <bits/stdc++.h> using namespace std; int main(){ int n,ans = 0; cin >> n; while(n--){ int x; cin >> x; ans ^= x; } cout << ans; return 0; }
By signing up a 大飞信奥 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 大飞信奥 universal account