这道题让我明白了:刷oj不能用cin和cout,要用scanf和printf,同样的程序换成io流就会超时
#include<stdio.h>
#include<map>
using namespace std;
int main(){
int N;
while(scanf("%d",&N)!=EOF){
map<long long,int> mii;
for(int i=0;i<N;i++){
long long temp;
scanf("%lld",&temp);
mii[temp]++;
}
map<long long,int>::iterator i;
for(i=mii.begin();i!=mii.end();i++){
if(i->second==1){
printf("%lld\n",i->first);
break;
}
}
}
return 0;
}