摘要:
#include iostream> using namespace std; int s(int a,int b){ if(a==b){ return 1; } if(a>b){ swap(a,b); } return s(a,b-a)+1; } int main(){ int a,b; cin> 阅读全文
posted @ 2023-11-04 09:47
最后一个还有我
阅读(11)
评论(0)
推荐(0)
摘要:
#include <iostream> using namespace std; int a(int n){ if(n<=2){ return 1; }else{ return a(n-1)+a(n-2); } } int main(){ int n; cin>>n; cout<<a(n); ret 阅读全文
posted @ 2023-11-04 08:45
最后一个还有我
阅读(10)
评论(0)
推荐(0)

浙公网安备 33010602011771号