shzuaeno @ 2020-08-23 20:51:56
已经写出来了,就是不会用高精
#include<stdio.h>
#include<stdlib.h>
int loti(int i)
{
if(i==1)
{
return 1;
}
else
{
return loti(i-1)+loti(i-2);
}
}
int main()
{
int l,t;
scanf("%d",&l);
t=loti(l);
printf("%d",t);
return 0;
}
by JRzyh @ 2020-08-23 20:52:30
不会学啊
by twelveZ @ 2020-08-23 20:52:40
@shzuaeno 不会用就去学啊,您求助啥???
by JRzyh @ 2020-08-23 20:53:37
问一句这代码真能部分AC吗?
by mushroom_knight @ 2020-08-23 20:53:38
python 请
by FutureThx @ 2020-08-23 20:53:49
哇咔咔,Python大法好
by shzuaeno @ 2020-08-23 20:54:23
我也会了,但 不会写
by konjacq @ 2020-08-23 20:54:45
@Zhaoyuhang2008 肯定不能,他loti(int i)
只要
by 江户川·萝卜 @ 2020-08-23 20:56:00
@shzuaeno 啥叫你会了不会写????不会写你叫啥会啊
by shzuaeno @ 2020-08-23 20:56:29
@Zhaoyuhang2008 能得40分
by shzuaeno @ 2020-08-23 20:57:18
@江户川·萝卜 理论懂