#include <iostream>
#include <vector>
using namespace std;
int input[100005];
int times[100005];
int main()
{
int n;
cin >> n;
int tmp;
for (int i = 0; i < n; i++)
{
cin >> input[i];
times[input[i]]++;
}
bool flag = false;
int result;
for (int i = 0; i < n; i++)
{
if (times[input[i]] == 1)
{
result = input[i];
flag = true;
break;
}
}
if (flag)
cout << result << endl;
else
cout << "None" << endl;
return 0;
}
PAT (Advanced) 1041. Be Unique (20)
最新推荐文章于 2017-01-26 22:03:33 发布