http://codeforces.com/contest/424/problem/C
1 #include2 #include 3 #include 4 #include 5 #define maxn 1000001 6 using namespace std; 7 8 int f[maxn],n; 9 long long a[maxn];10 void inti()11 {12 f[0]=0;13 f[1]=1;14 for(int i=2; i<=maxn; i++)15 {16 f[i]=f[i-1]^i;17 }18 }19 int main()20 {21 inti();22 scanf("%d",&n);23 cin>>a[0];24 long long sum=a[0];25 for(int i=1; i >a[i];28 sum^=a[i];29 }30 for(int i=0; i