Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Bestzu

Problemset: กองชาม

Language: cpp

Time: 0.009 second

Submitted On: 2025-10-16 21:34:25

#include <bits/stdc++.h>
#define endl '\n'
using namespace std;

int main() {
    ios::sync_with_stdio(false); cin.tie(nullptr);

	int n; cin >> n;
	int mx = 0;
	map<int,int> mp;
	for(int i = 0; i < n; i++) {
		int x; cin >> x;
		mp[x]++;
		mx = max(mx, mp[x]);
	}
	cout << mx << endl;
    return 0;
}