Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
89952 sh25_guwz 斐波那契数列 C++ 通过 0 MS 244 KB 221 2026-06-05 15:02:02

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int f(int n){ if(n==1) return 0; 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; }


测评信息: