AtCoder Beginner Contest 221
翻译中…
Problem Statement
翻译中…
Given are positive integers $N$ and $M$.
翻译中…
For each $k=1,2,\ldots,N$, find the following number and print it modulo $998244353$.
翻译中…
- The number of multisets
$A$containing$k$positive integers that satisfy both of the following conditions: - the sum of the elements of
$A$is$N$;- for every positive integer
$x$,$A$contains at most$M$occurrences of$x$.
- for every positive integer
翻译中…
Constraints
翻译中…
$1 \leq M \leq N \leq 5000$- All values in input are integers.
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
N M
翻译中…
Output
翻译中…
Print $N$ lines; the $i$-th line $(1 \leq i \leq N)$ should contain the answer for the case $k=i$.
翻译中…
样例
Input #1
4 2
Output #1
1
2
1
0
- For $k=1$, there is one multiset $A$ that satisfies the conditions: $\{4\}$.
- For $k=2$, there are two multisets $A$ that satisfy the conditions: $\{1,3\}$ and $\{2,2\}$.
- For $k=3$, there is one multiset $A$ that satisfies the conditions: $\{1,1,2\}$.
- For $k=4$, there is no multiset $A$ that satisfies the conditions.
Input #2
7 7
Output #2
1
3
4
3
2
1
1
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。