| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 130205 | 黄枳润 | 斐波那契数列(递归) | C++ | Wrong Answer | 1 MS | 276 KB | 427 | 2025-09-08 20:25:52 |
#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 (x-1)+(x-2); } } int main(){ long long a; cin>>a; cout<<g(a); return 0; }
------Input------
25
------Answer-----
75025
------Your output-----
47