Submission

Status:

Compilation Error

Subtask/Task Score:

Score: 0

User: cyblox_boi

Problemset: กองชาม

Language: cpp

Time: 0.000 second

Submitted On: 2025-12-27 22:10:43

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

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

    return 0;
}