Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
160943 赵乐骏 小明养猪的故事 C++ Wrong Answer 0 MS 268 KB 236 2026-09-26 17:06:27

Tests(0/1):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int T; cin>>T; int N; cin>>N; int a[21]; a[1]=1; for(int i=2;i<=N;i++){ a[i]=a[i-1]+a[i-2]; } cout<<a[N]; return 0; }


Run Info:

------Input------
17 1 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
------Answer-----
1 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765
------Your output-----
1