摘要: /* 熊孩子上楼梯,可以迈1步、2步或者3步,共有n个台阶(1<=n<=30),共有多少种走法? 输入:4 输出: 1 1 1 1 1 1 2 1 2 1 1 3 2 1 1 2 2 3 1 */ #include<iostream>using namespace std;int a[1000];i 阅读全文
posted @ 2021-09-17 10:31 Hi,小董先生 阅读(96) 评论(0) 推荐(0)