| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 74718 | sh25_shenpy | 斐波那契数列_记忆化递归 | C++ | 运行超时 | 1000 MS | 252 KB | 225 | 2025-11-30 21:51:06 |
#include<bits/stdc++.h> using namespace std; int f(int n) { if(n==1) return 1; else if(n==2) return 1; else return f(n-1)+f(n-2); } int main() { int n; cin>>n; cout<<f(n); return 0; }