#include<bits/stdc++.h>
using namespace std;
unsigned long long cnt = 0,num = 0;
void print(unsigned long long ci){
for(unsigned long long i = 0;i <= ci;i++){
num++;
cout<<num<<":画个圆圈诅咒你!"<<endl;
}
cnt++;
}
int f(unsigned long long sum){
print(sum);
if(sum == 0){
return 1;
}
if(sum == 1){
return 2;
}
return f(sum - 1) + f(sum - 2);
}
int main(){
int n;
cin>>n;
cout<<f(n)<<endl<<cnt<<" "<<num<<endl;
return 0;
}
04-18
465
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountBlack.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交