Run ID:155058
提交时间:2026-05-31 12:55:18
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int a[100000]; for (int i = 0; i < 0; i++) { cin >> a[i]; } int b[1001]; for (int i = 0; i < n; i++) { int x = a[i]; b[x]++; } int m = 1; for (int i = 2; i <= 1000; i++) { if (b[i] > b[m]) { m = i; } cout << m; } return 0; }