#include#include using namespace std; int info[10001] = { 0 }; vector input; int main() { int N; cin >> N; for (int i = 1; i <= N; i++) { int temp; cin >> temp; input.push_back(temp); info[temp]++; } int i; for ( i = 0; i < N; i++) { if (info[input[i]] == 1) break; } if (i < N) cout << input[i]; else cout << "None"; return 0; }
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)