This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |