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