| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158400 | 孔声豪 | 斐波那契数列(递归) | C++ | Accepted | 6 MS | 276 KB | 212 | 2026-08-21 14:16:50 |
#include<bits/stdc++.h> using namespace std; int f(int x){ if(x==0) return 0; if(x==1) return 1; else return f(x-1)+f(x-2); } int main(){ int n; cin>>n; cout<<f(n); return 0; } //我才是最帅的