Accepted_233 @ 2017-07-11 20:45:44
#include<cstdio>
using namespace std;
int main()
{
int f1=1,f2=2,f3=0;
int n,i;
scanf("%d",&n);
if(n==1)
printf("1");
for(i=3;i<=n;i++)
{
f3=f1+f2;
f1=f2;
f2=f3;
}
printf("%d",f2);
return 0;
}
by 江南小巫 @ 2017-07-11 21:50:16
此题需用高精
by 江南小巫 @ 2017-07-11 21:51:00
我unsigned long long 60分。。。
by 梧桐灯 @ 2017-09-13 13:16:41
@江南小巫 废话