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>
using namespace std;
int n, q, frecv[200001], maxval=0;
int main()
{
cin>>n>>q;
for(int i=1; i<=q; i++)
{
int x;
cin>>x;
frecv[x]++;
maxval=max(maxval, frecv[x]);
}
cout<<maxval-1;
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... |