Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
79777 张黄源 斐波那契数列 C++ Wrong Answer 1 MS 268 KB 280 2024-07-10 13:26:48

Tests(0/11):


Code:

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


Run Info:

------Input------
36
------Answer-----
14930352
------Your output-----
1286960902-217042295-217042295