8575: Melborp Elcissalc

内存限制:256 MB 时间限制:1 S 标准输入输出
题目类型:传统 评测方式:文本比较 上传者:
提交:4 通过:1

题目描述

链接: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-1k1, 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.

输入格式


A single line contains three integers n,k,tn,k,tn,k,t (1≤n,k≤64,0≤t≤n(n+1)21 \leq n, k \leq 64, 0 \leq t \leq \frac{n(n+1)}{2}1n,k64,0t2n(n+1)).

输出格式


Output a single number, denoting the answer modulo 998244353998\,244\,353998244353.

输入样例 复制

2 5 1

输出样例 复制

12

分类标签