分苹果
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.
Description
藤藤手里有 个苹果,现在藤藤要把这些苹果分给 个人,第个人最多分 个苹果,当然你也可以一个都不给第个人。
注意每个苹果都是无差别的,苹果都长的一样。问你藤藤分苹果的方案数。
由于答案很大, 结果对 取余。
Format
Input
第一行两个整数
接下来个整数,表示
Output
一个整数表示答案。
Samples
样例输入
3 4
1 2 3
样例输出
5
Limitation
的测试数据,
的测试数据,
的测试数据,,
20250327动态规划测试
- Status
- Done
- Rule
- IOI
- Problem
- 6
- Start at
- 2025-4-3 17:15
- End at
- 2025-4-3 19:15
- Duration
- 2 hour(s)
- Host
- Partic.
- 26