- A. Polycarp's Pockets
- 废话不多说,直接上AC程序!
#include<bits/stdc++.h> using namespace std; int n,x; int t[101]; int main(){ scanf("%d",&n); for (int i=1;i<=n;i++){ scanf("%d",&x); t[x]++; } int maxx=0; for (int i=1;i<=100;i++) maxx=max(maxx,t[i]); printf("%d",maxx); return 0; }
Codeforces #494 A. Polycarp's Pockets
最新推荐文章于 2022-03-16 20:39:55 发布