Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: cyblox_boi

Problemset: กองชาม

Language: cpp

Time: 0.007 second

Submitted On: 2025-12-27 22:11:21

#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<int, int> &a, const pair<int, int> &b)
                          { return a.second < b.second; });

    cout << it->second << '\n';

    return 0;
}