斐波那契数列和爬楼梯问题

n阶楼梯,每次爬一阶或者两阶,求总共有多少中方法爬n阶楼梯?ios #include "stdafx.h" #include <iostream> using namespace std; int louti(int n) { int a[30]={0},b[30]={1},c[30];//申请数组用于存储结果 int max=30; //能求
相关文章
相关标签/搜索