#P1255. 数楼梯
数楼梯
Description
A staircase has steps. You can climb either 1 step or 2 steps at a time. Write a program to compute the number of distinct ways to reach the top.
Input Format
A single integer , the number of steps.
Output Format
Output the total number of ways.
4
5
Hint
- For of the testdata, .
- For of the testdata, .
Translated by ChatGPT 5
京公网安备 11011102002149号