#abc248c. C - Dice Sum
C - Dice Sum
Score : points
问题描述
有多少个长度为 的整数序列 满足以下所有条件?
由于计数可能会非常庞大,因此请在模 下求解。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
How many integer sequences of length , , satisfy all of the conditions below?
Since the count can get enormous, find it modulo .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
2 3 4
Sample Output 1
6
The following six sequences satisfy the conditions.
Sample Input 2
31 41 592
Sample Output 2
798416518
Be sure to print the count modulo .
update @ 2024/3/10 10:36:56