#C. 斐波那契数列(递归)

    传统题 1000ms 256MiB

斐波那契数列(递归)

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阶台阶,上楼可以一步上一阶,也可以一步上二阶。用递归的方法编一程序计算共有多少种不同的走法。

【样例输入】

4

【样例输出】

5

递归

未认领
状态
已结束
题目
10
开始时间
2026-7-6 0:00
截止时间
2026-7-31 23:59
可延期
24 小时