| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 76909 | 程余天皓 | 杀人游戏 | C++ | Wrong Answer | 0 MS | 272 KB | 239 | 2024-06-04 21:04:48 |
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; long long a[n+1]; a[1]=1; a[2]=2; a[3]=3; for(int i=4;i<=n;i++){ a[i]=a[i-1]+a[i-2]; } cout<<a[n]; return 0; }
------Input------
10 9
------Answer-----
9 8 10 2 5 3 4 1 6
------Your output-----
89