爬楼梯 I(run)
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
说明
树老师爬楼梯,他可以每次走级或者级或者级,输入楼梯的级数,求不同的走法数。
例如:楼梯一共有级,他可以每次都走一级,或者一次走两级,一共种方法。
输入格式
输入一行,一个正整数,代表楼梯级数,。
输出格式
输出仅一行,一个整数,对应到达N级台阶的方法数。样例
1
1
2
2
C++阶段测试20260426
- Status
- Done
- Rule
- IOI
- Problem
- 5
- Start at
- 2026-4-26 10:45
- End at
- 2026-4-26 12:03
- Duration
- 1.3 hour(s)
- Host
- Partic.
- 10