传统题 1000ms 256MiB

C - Dice Sum

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

C - Dice Sum

Score : $300$ points

Problem Statement

How many integer sequences of length $N$, $A=(A_1, \ldots, A_N)$, satisfy all of the conditions below?

  • $1\le A_i \le M$ $(1 \le i \le N)$

  • $\displaystyle\sum _{i=1}^N A_i \leq K$

Since the count can get enormous, find it modulo $998244353$.

Constraints

  • $1 \leq N, M \leq 50$
  • $N \leq K \leq NM$
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

NN MM KK

Output

Print the answer.


2 3 4
6

The following six sequences satisfy the conditions.

  • $(1,1)$
  • $(1,2)$
  • $(1,3)$
  • $(2,1)$
  • $(2,2)$
  • $(3,1)$

31 41 592
798416518

Be sure to print the count modulo $998244353$.

2024暑假入门组刷题营第三期(十一)

未参加
状态
已结束
规则
IOI
题目
8
开始于
2024-7-19 13:00
结束于
2024-7-19 15:00
持续时间
2 小时
主持人
参赛人数
9