Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
91703 张永良 斐波那契数列 C++ Wrong Answer 0 MS 276 KB 185 2024-09-22 13:09:27

Tests(0/11):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int k,a=1,b=1; cin>>k; for(int i=3;i<=k;i++){ int o=a; a=b; b=o+b; cout<<b<<" "; } return 0; }


Run Info:

------Input------
36
------Answer-----
14930352
------Your output-----
2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765 10946 17711 28657 46368 75025 121393 196418 317811 514229 832040 1346269 2178309 3524578 5702887 9227465 14930352