mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
22 lines
359 B
C++
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;
|
||
|
}
|