Run ID:80885

提交时间:2024-07-11 16:52:46

#include <bits/stdc++.h> using namespace std; int main() { int a[1000] = {}, n, t, j, i, max = 0; cin >> n; for (i = 0; i < n * 3; i++) { cin >> t; a[t]++; } for (i = 0; i < n; i++) { if (a[i] > max) { max = a[i]; j = i; } } cout << j; return 0; }