走楼梯
No testdata at current.
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阶,上楼可以一步上一阶,也可以一步上二阶。 编一个程序,计算共有多少种不同的走法。0<=N<=5000

输入输出说明
输入说明
一个数字,楼梯数
输出说明
走的方式几种
题目样例
样例输入
4
样例输出
5
数据范围
-
对于 20% 数据, 满足
-
对于 40% 数据, 满足
-
对于 100% 数据, 满足
暑假阶段测试
- Status
- Done
- Rule
- XCPC
- Problem
- 7
- Start at
- 2024-8-10 14:00
- End at
- 2024-8-10 17:00
- Duration
- 3 hour(s)
- Host
- Partic.
- 8