Codeforces Round #558 (Div. 2) B2. Cat Party (Hard Edition)(思维题)
题目有n(1#definerep(i,a,b)for(inti=a;i<=b;++i)#definesci(n)scanf("%d",&(n));usingnamespacestd;constintN=1e5+10;intn,cnt[N],num[N],v;intmx,ans;boolok;intmain(){sci(n);rep(i,1,n){sci(v);cnt[num[v]]--;num[v