Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- int n;
- cin>>n;
- vector<long long>v(n);
- map<long long,int>mp;
- for(int i=0;i<n;i++)
- {
- cin>>v[i];
- mp[v[i]]++;
- }
- int ans=0;
- for(auto u:mp)
- {
- if(u.second>ans) ans=u.second;
- }
- cout<<ans;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement