Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: cyblox_boi
Problemset: กองชาม
Language: cpp
Time: 0.011 second
Submitted On: 2025-12-27 22:09:58
#include <bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n;
cin >> n;
unordered_map<int, int> bowls;
for (int i = 0; i < n; i++)
{
int temp;
cin >> temp;
bowls[temp]++;
}
auto it = max_element(bowls.begin(), bowls.end(), [](const pair<const int, int> &a, const pair<const int, int> &b)
{ return a.second < b.second; });
cout << it->second << '\n';
return 0;
}