| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 130213 | 郝王骏程 | 斐波那契数列(递归) | C++ | Accepted | 6 MS | 268 KB | 429 | 2025-09-08 20:52:02 |
#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 f(int m){ if (m==0) return 0; if (m==1) return 1; else return f(m-1) + f(m - 2); } int main(){ int d; cin>>d; cout<<f(d); return 0; }