| 记录编号 | 230362 | 评测结果 | AAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 1198.[幻影lyd] 雷雷扔粉笔头 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.003 s | ||
| 提交时间 | 2016-02-21 15:23:09 | 内存使用 | 0.29 MiB | ||
#include<cstdio>
unsigned long long f[100];
int main(){
freopen("fenbi.in","r",stdin);
freopen("fenbi.out","w",stdout);
f[0]=1;f[1]=2;
for(int i=2;i<=91;++i)f[i]=f[i-1]+f[i-2];
int n;scanf("%d",&n);printf("%llu\n",f[n]);
fclose(stdin);fclose(stdout);
return 0;
}