Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
3796 | 吴奕希 | PELL数列 | C++ | Runtime Error | 1995 MS | 852 KB | 291 | 2024-07-06 11:23:31 |
# include<iostream> using namespace std; int pell(int n){ if(n<=2)return n; return 2*pell(n-1)+pell(n-2); } int main(){ int x, test[1000]; cin>>x; for(int i = 0; i < x; i++)cin>>test[i]; for(int i = 0; i < x; i++)cout<<pell(test[i])<<endl; return 0; }
Runtime Error:[ERROR] A not allowed system call. Call ID:275