摘要: #include <bits/stdc++.h> using namespace std; int fc(int s){ if(s<=2){ return 1; }else{ return fc(s-1)+fc(s-2); } } int main(){ int n; cin>>n; cout<<f 阅读全文
posted @ 2025-03-23 09:30 昵称就是最好的昵称 阅读(3) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int fc(int s){ if(s==1){ return 1; }else{ return s*fc(s-1); } } int main(){ int n; cin>>n; cout<<fc(n); 阅读全文
posted @ 2025-03-23 09:28 昵称就是最好的昵称 阅读(1) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int fc(int s){ if(s==1){ return 1; }else{ cout<<s<<" "; return fc(s-1); } } int main(){ int n; cin>>n; c 阅读全文
posted @ 2025-03-23 09:27 昵称就是最好的昵称 阅读(1) 评论(0) 推荐(0)