fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. long long n, res = 0, x;
  6. cin >> n;
  7. for (int i = 0; i < n; i++) {
  8. cin >> x;
  9. res ^= x;
  10. }
  11. cout << res;
  12. return 0;
  13. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
94679819917792