This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
#include<bits/stdc++.h>
usingnamespacestd;
intn;
constintN=2e5+10;
inta[N];
intans;// 组数
intcnt;// 当前组内人数
/*
Q:最多能组织多少个足球队?
A:举栗子说明:
3
1 2 2
① 将能力值从小到大排序,能力值为: 1 2 2
② 第1个小朋友,能力值a[1]=1,可以独立成班,创建新班级ans++,此时ans=1,表示1个班级已成班