OJ-Problems-Source/HDOJ/2095_autoAC.cpp
2016-08-19 16:52:35 +08:00

22 lines
359 B
C++

#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
int n;
int temp;
while(scanf("%d",&n)==1)
{
if(!n)
break;
int ans,i;
for(i=0,ans=0;i<n;i++)
{
scanf("%d",&temp);
ans^=temp;
}
printf("%d\n",ans);
}
return 0;
}