Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
135625 李昊宇 斐波那契数列(递归) C++ Accepted 6 MS 276 KB 264 2025-11-07 21:53:15

Tests(15/15):


Code:

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