| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 73870 | jdf25_wangchs | 斐波那契数列_记忆化递归 | C++ | 运行超时 | 1000 MS | 252 KB | 276 | 2025-11-18 20:31:01 |
#include<iostream> using namespace std; int feb(int n) { if (n == 1 || n == 2) { return 1; } else { return feb(n - 1) + feb(n - 2); } } int main() { int n; cin >> n; cout << feb(n) << endl; return 0; }