| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 2 초 (추가 시간 없음) | 1024 MB | 3 | 3 | 2 | 100.000% |
Grammy has a favorite number $k$. She thinks that all the numbers divisible by $k$ are good.
For each array containing only numbers from 0ドル$ to $k-1,ドル Grammy defines its goodness as the number of non-empty consecutive subarrays that sum to a good number.
Please count the number of arrays of length $n$ such that their goodness is $t$. Since the answer can be enormous, output the answer modulo 998ドル,244円,353円$.
A single line contains three integers $n,ドル $k,ドル $t$ (1ドル \leq n, k \leq 64,ドル 0ドル \leq t \leq \frac{n(n+1)}{2}$).
Output a single integer denoting the answer modulo 998ドル,244円,353円$.
2 5 1
12
7 10 15
2016
46 50 171
645560469