#include <iostream>
#include <map>
using namespace std;
int main () {
int n;
cin >> n;
map<int, int> freq;
for (int i = 1; i <= n; i++) {
int a;
cin >> a;
freq[a]++;
}
int max_freq = 0;
for (auto it = freq.begin(); it !=freq.end(); it++) {
max_freq = max(max_freq, it->second);
}
int count = 0;
cout << count << endl;
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |