Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
74261 jdf25_wangchs 斐波那契数列_记忆化递归 C++ 运行超时 1000 MS 244 KB 262 2025-11-24 15:13:27

Tests(2/3):


#include<bits/stdc++.h> 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; }


测评信息: