斐波那契數列和爬樓梯問題

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; //能求
相關文章
相關標籤/搜索