mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-14 05:38:47 +00:00
25 lines
376 B
C++
25 lines
376 B
C++
#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;
|
|
}
|