| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 68036 | 夏轩淇 | 斐波那契数列(递归) | C++ | Time Limit Exceeded | 1000 MS | 264 KB | 225 | 2024-03-18 18:58:14 |
#include<bits/stdc++.h> using namespace std; long long f(int a) { if(a==1){ return 0; }else if(a==2){ return 1; }else{ return f(a-1)+f(a); } } int main(){ int x; cin>>x; cout<<f(x); return 0; }