constint N = 110; int n; int a[N]; int res; intmain() { cin >> n; for (int i = 0; i < n; i++) { int x;//3 cin >> x; a[x] ++;//a[3]++; if (a[x] > res) res ++; }
constint N = 110; int n; int a[N]; int res; intmain() { map<int, vector<int>> mp; cin >> n; for (int i = 0; i < n; i++) { int x; cin >> x; mp[x].push_back(i); // 3--> 2个元素 }
for (auto item : mp) { res = max(res, (int) item.second.size()); } cout << res; return0; }