先上代码~~~
#include<bits/stdc++.h>
using namespace std;
long long fb(int a)
{
if(a==1)return 1;
if(a==2)return 2;
return fb(a-1)+fb(a-2);
}
int main()
{
srand(time(0));
int b=rand()%4+1;
long long a;
cin>>a;
cout<<fb(a);
if(b==1)
{
return 114514;
}
if(b==2)
{
return 250;
}
if(b==3)
{
return 0;
}
if(b==4)
{
return 1145140;
}
}
警告:
这个代码虽然挺NB垃圾,但是能用,不信可以去dev-c++试一下~~~
再次警告:
这玩意能用是能用,但是该死仁慈的洛谷会给你0分哟~~~