Score : $700$ points
Given positive integers $N, K$ and $M$, solve the following problem for every integer $x$ between $1$ and $N$ (inclusive):
Input is given from Standard Input in the following format:
$N$ $K$ $M$
Use the following format:
$c_1$ $c_2$ $:$ $c_N$
Here, $c_x$ should be the number, modulo $M$, of multisets such that the average of the elements is $x$.
3 1 998244353
1 3 1
Consider non-empty multisets containing between $0$ and $1$ instance(s) of each of the integers between $1$ and $3$. Among them, there are:
1 2 1000000007
2
Consider non-empty multisets containing between $0$ and $2$ instances of each of the integers between $1$ and $1$. Among them, there are:
10 8 861271909
8 602 81827 4054238 41331779 41331779 4054238 81827 602 8