摘要:
1204:爬楼梯 时间限制: 1000 ms 内存限制: 65536 KB提交数: 9239 通过数: 4844 【题目描述】 树老师爬楼梯,他可以每次走1级或者2级,输入楼梯的级数,求不同的走法数。 例如:楼梯一共有3级,他可以每次都走一级,或者第一次走一级,第二次走两级,也可以第一次走两级,第二 阅读全文
摘要:
#include<iostream>#include<cstdio>using namespace std;long long a[100];float b[100];int main(){ int n,k; cin>>n>>k; for(int i=1;i<=n;i++) { scanf("%d" 阅读全文