Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
130210 黄枳润 斐波那契数列(递归) C++ Wrong Answer 0 MS 264 KB 429 2025-09-08 20:28:07

Tests(0/15):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; long long g(long long x){ if(x<3){ return x; }else{ return g(x-1)+g(x-2); } } int main(){ long long a; cin>>a; cout<<g(a); return 0; }


Run Info:

------Input------
25
------Answer-----
75025
------Your output-----
121393