Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
41134 wujunyi 斐波那契数列 C++ 通过 0 MS 240 KB 215 2024-02-19 15:12:00

Tests(1/1):


#include <bits/stdc++.h> using namespace std; int re(int n){ if(n==1){ return 0; } if(n==2){ return 1; } return re(n-1)+re(n-2); } int main(){ int n; cin>>n; cout<<re(n); return 0; }


测评信息: