













May 11, 2023
#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]);
}
Posted by
xiaodao
Category: 日常
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。