Sequences
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Count the number of all non-decreasing sequences of length containing integers from to , where every element can occur at most times.
Input
Three integers and .
Output
Print the number of described sequences.
Examples
The sequences are: .
Input #1
Answer #1
Submissions 489
Acceptance rate 26%