#include <bits/stdc++.h>
using namespace std;
const int N = 1e3+15;
int dp[N][N][15][2];
int main(){
ios_base::sync_with_stdio(0);
cin.tie(NULL);cout.tie(NULL);
int n,m;
cin>>n>>m;
int ans=0;
map<int,int>mp;
while(m--){
int x;
cin>>x;
ans=max(++mp[x],ans);
}
cout<<ans-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... |