Advertisement
Saleh127

CF 903C

Aug 6th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. ios_base::sync_with_stdio(0);
  6. cin.tie(0);cout.tie(0);
  7.  
  8. int t,c[20000],d,e,i,j,k,l=0000;
  9. map<int,int>a;
  10. cin>>t;
  11. for(i=0;i<t;i++)
  12. {
  13. cin>>c[i];
  14. a[c[i]]++;
  15. }
  16. for(i=0;i<t;i++)
  17. {
  18. l=max(l,a[c[i]]);
  19. }
  20. cout<<l<<endl;
  21. return 0;
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement