#include <iostream>using namespace std; int main() { long long n, res; while (cin >> n) res ^= n; cout << res; return 0;}
1 2 3 1 2 3 1 2 3 1 2 3 1
1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!