new file: P11231.cpp

This commit is contained in:
hanyixuanten
2026-08-24 20:50:53 +08:00
parent 30b0bf8788
commit 2efad7c60d
+19
View File
@@ -0,0 +1,19 @@
#include <bits/stdc++.h>
using namespace std;
int n;
int a;
map<int, int> cou;
int main()
{
scanf("%d", &n);
for (int i = 1; i <= n; ++i)
{
scanf("%d", &a);
cou[a]++;
}
int maxx = 0;
for (auto k : cou)
maxx = max(maxx, k.second);
printf("%d\n", maxx);
return 0;
}