luogu#P5224. Candies
Candies
Background
JerryC has a big bag of candies, and he is eating this bag at a speed of .
Problem Description
JerryC has boxes of candies (all different from each other). At first, he wanted to pick boxes, but he felt it was not enough, so he wants to take some more. Since he likes the number , as long as the number of boxes he takes out () satisfies , JerryC will feel satisfied.
Find how many ways can make JerryC feel satisfied. Output the number of ways .
Input Format
One line with three non-negative integers .
Output Format
One line with one non-negative integer, the number of ways .
10 2 3
342
Hint
Sample explanation:
He can take out boxes, boxes, or boxes. Just compute the combinations:
Constraints:
| Test Point ID | ||
|---|---|---|
。
Translated by ChatGPT 5