链接:
https://ac.nowcoder.com/acm/contest/33192/J
来源:牛客网
Grammy has a favorite number
kkk. She thinks that all the numbers divisible by
kkk are good.
For each array containing only numbers from
000 to
k−1k-1k−1, Grammy define its goodness as the number of non-empty consecutive subarrays that sums to a good number.
Please count the number of arrays of length
nnn such that its goodness is
ttt. Since the answer can be enormous, output the answer modulo
998244353998\,244\,353998244353.