| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 74731 | sh25_shenpy | 斐波那契数列_记忆化递归 | C++ | 编译错误 | 0 MS | 0 KB | 225 | 2025-12-01 21:44:07 |
#include<bits/stdc++.h> using namespace std; void f(int n) { if(n==1) return 1; if(n==2) return 1; if(n>=3) f(n-1)+f(n-2); } int main() { int n; cin>>n; cout<<f(n); return 0; }