new file: P11231.cpp
This commit is contained in:
+19
@@ -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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user