#P1192. 台阶问题
台阶问题
Description
There are steps. You start at the bottom, and each time you can climb steps upward. How many different ways are there to reach the -th step?
Input Format
Two positive integers .
Output Format
A single positive integer , the number of different ways to reach the -th step.
5 2
8
Hint
- For of the testdata, , .
- For of the testdata, .
- For of the testdata, , .
Translated by ChatGPT 5
京公网安备 11011102002149号