#include<iostream>
#include<cstdio>
#include<cstring>
using namespace std;
int n;
int o[10100];
int main(){
// freopen("in.txt","r",stdin);
while(cin>>n){
memset(o,0,sizeof(o));
int res;
for(int i=0;i<=n;i++){
int temp=0;
cin>>temp;
if(o[temp]){
res=temp;
}
else
o[temp]=1;
}
cout<<res<<endl;
}
return 0;
}
HDU4593
最新推荐文章于 2021-08-13 14:52:47 发布