Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
89172 黎贤超 斐波那契数列 C++ Wrong Answer 1 MS 264 KB 221 2024-08-23 09:27:58

Tests(0/11):


Code:

#include<iostream> using namespace std; int main(){ int a=1,b=1,c=1,i,f; cin>>f; if(f==1||f==2){ cout<<1; } else{ for(i=3;i<f;i++){ c=a+b; a=b; b=c; } cout<<c; } return 0; }


Run Info:

------Input------
36
------Answer-----
14930352
------Your output-----
9227465