0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-27 04:52:00 +00:00
OI-codes/AtCoder/ABC236/B/B.cpp

25 lines
376 B
C++
Raw Normal View History

#include <iostream>
#include <map>
using std::cin;
using std::cout;
using std::endl;
int n, a;
std::map<int, int> map;
int main() {
cin >> n;
for (int i = 1; i < n * 4; i++) {
cin >> a;
map[a]++;
}
for (int i = 1; i <= n; i++) {
if (map[i] == 3) {
cout << i << endl;
return 0;
}
}
return 0;
}