摘要: #include <iostream> using namespace std; int p1(int a){ if(a<=2){ return 1; }else{ return p1(a-1)+p1(a-2); } } int main(){ int n; cin>>n; cout<<p1(n); 阅读全文
posted @ 2023-10-29 09:46 王ys 阅读(8) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-10-29 08:59 王ys 阅读(13) 评论(0) 推荐(0)