#include <lastweapon/io>
#include <lastweapon/poly>
using namespace lastweapon;
const int N = int(5e3) + 9;
int main() {
#ifndef ONLINE_JUDGE
freopen("in.txt", "r", stdin);
#endif
int cn, n; RD(cn, n); ++n;
Poly A(n); DO(cn) {
int c; if (RD(c) < n) A[c] += 1;
}
Poly C = (Poly{1} + (Poly{1}-4*A).sqrt(n)).inv(n) * 2;
FOR(i, 1, n) printf("%d\n", C[i]);
}
![]() |
![]() |
|||
|
||||
![]() |
![]() |




Alca
Amber
Belleve Invis
Chensiting123
Edward_mj
Fotile96
Hlworld
Kuangbin
Liyaos
Lwins
LYPenny
Mato 完整版
Mikeni2006
Mzry
Nagatsuki
Neko13
Oneplus
Rukata
Seter
Sevenkplus
Sevenzero
Shirleycrow
Vfleaking
wangzhpp
Watashi
WJMZBMR
Wywcgs
XadillaX
Yangzhe
三途川玉子
About.me
Vijos
