| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 139218 | 李明秦 | PELL数列 | C++ | Runtime Error | 0 MS | 272 KB | 252 | 2025-12-05 17:08:57 |
#include<bits/stdc++.h> using namespace std; int main() { int n,k,a[1001]={}; cin>>n;a[1]=1;a[2]=2; for(int i=2;i<=n;i++){ cin>>k; for(int j=2;j<=k;j++){ a[j]=(2*a[j-1]+a[j-2])%32767; } cout<<a[k]; } return 0; }
Runtime Error:Segmentation fault