Grasshopper
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
One of the teachers has a grasshopper living in their room, and it loves to jump on a one-dimensional checkered board of length cells. Unfortunately for the grasshopper, it can only jump forward by cells.
One day, the teachers became curious about how many ways the grasshopper could jump from the first cell to the last. Help them answer this question.
Input
Two integers and .
Output
Print the number of ways the grasshopper can jump from the first cell to the last.
Examples
Input #1
Answer #1
Input #2
Answer #2
Input #4
Answer #4
Input #8
Answer #8
Submissions 8K
Acceptance rate 47%