Ayoub and Lost Array
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
已知有一个长度为()的数列,每一个数的大小在()之间。求出有多少种方案使得这个数列的和为的倍数。答案对取模。当然,如果无法组成任何一个合法的数列,答案即为。
输入格式
一行三个正整数,,
输出格式
一行,表示方案数模的结果。
2 1 3
3
3 2 2
1
9 9 99
711426616