Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: njoop
Problemset: กองชาม
Language: cpp
Time: 0.025 second
Submitted On: 2025-06-02 08:08:49
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, ans = 0, arr[310] = {0};
cin >> n;
for (int i = 0; i < n; i++) {
int x;
cin >> x;
arr[x]++;
}
for(int i=1; i<=300; i++) {
ans = max(ans, arr[i]);
}
cout << ans;
}