Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
94294 | 陈铎文 | 斐波那契数列 | C++ | Wrong Answer | 1 MS | 268 KB | 173 | 2024-10-20 11:14:59 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[47]={1,1,2},k; cin>>k; for(int i=3;i<=k;i++){ a[i]=a[i-1]+a[i-2]; } cout<<a[k]; return 0; }
------Input------
36
------Answer-----
14930352
------Your output-----
24157817