5337: Product
内存限制:512 MB
时间限制:1.000 S
评测方式:文本比较
命题人:
提交:0
解决:0
题目描述
Bob has three integers n,k,D.
For a non-negative integer sequence a1...n, we denote the weight of it is:
D! / (∏i=1n (ai+k)!)
Now Bob wants to know the sum of the weight of all of the sequences a1...n which satisfies the following conditions:
It's guaranteed that y mod 998244353≠0.
For a non-negative integer sequence a1...n, we denote the weight of it is:
D! / (∏i=1n (ai+k)!)
Now Bob wants to know the sum of the weight of all of the sequences a1...n which satisfies the following conditions:
- ∀i∈[1,n],ai≥0
- ∑i=1n ai=D
It's guaranteed that y mod 998244353≠0.
输入
The first line has three integers n,k,D.
1≤n≤50.
0≤k≤50.
0≤D≤108.
1≤n≤50.
0≤k≤50.
0≤D≤108.
输出
Output the answer.
样例输入 复制
3 1 5
样例输出 复制
748683282