| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 78603 | 杨宜炜 | 斐波那契数列(递归) | C++ | Wrong Answer | 0 MS | 264 KB | 252 | 2024-06-22 21:27:56 |
#include<bits/stdc++.h> using namespace std; int fblq(int n){ if(n==1){ return 0; }else if(n==2){ return 1; }else{ return fblq(n-1)+fblq(n-2); } } int main(){ int n; while(cin>>n){ int sum=fblq(n); cout<<sum<<endl; } }
------Input------
25
------Answer-----
75025
------Your output-----
46368