liyx13 @ 2024-08-08 10:39:17
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,f[31];
cin>>n;
f[1]=1;
f[2]=2;
for(int i=3;i<=n;i++)
f[i]=f[i-1]+f[i-2];
cout<<f[n];
return 0;
}
有什么问题,样例都对!!!!
by Scez @ 2024-08-08 10:39:56
@liyx13
这题要用高精
by liyx13 @ 2024-08-08 10:42:35
谢谢