#include #include using namespace std; using namespace atcoder; #define FOR(i,l,r) for(int i=(l);i<(r);++i) #define rep(i,n) FOR(i,0,n) using ll = long long; using ull = unsigned long long; using pii = pair; using pll = pair; #define pf push_front #define pb push_back #define mp make_pair #define fi first #define se second #define sz(x) ((int)x.size()) #define pqueue priority_queue #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() int dx[4] = {1, 0, -1, 0}; int dy[4] = {0, 1, 0, -1}; #define INF (1LL<<30)-1 const int mod = 1000000007; #define pcnt __builtin_popcount #define bit(n) (1LL<<(n)) #define UNIQUE(v) v.erase(unique(v.begin(),v.end()),v.end()); template void out(T vec){for(int c:vec)cout<(0)) #endif //------------------------------------------------------------------// void solve(){ int N,K; cin>>N>>K; vector cnt(N); rep(i,N){ int A; cin>>A; cnt[A-1]++; } sort(rall(cnt)); int c=0,pos=0; while(c