Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
79535 揭伟琦 斐波那契数列 C++ Accepted 230 MS 276 KB 218 2024-07-07 16:45:01

Tests(11/11):


Code:

#include<iostream> using namespace std; int Fbi(int i){ if(i==1||i==2){ return 1; }else{ return Fbi(i-1)+Fbi(i-2); } } int main(){ int n; cin>>n; cout<<Fbi(n); return 0; }