| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 79251 | 张黄源 | 斐波那契数列 | C++ | Runtime Error | 38 MS | 65796 KB | 224 | 2024-06-30 15:46:11 |
#include<iostream> #include<cstdio> using namespace std; int d(int n) { if(n==1) { return 1; } else { return d(n-2)+d(n-1); } } int main() { int a; cin>>a; cout<<d(a); return 0; }
Runtime Error:Segmentation fault