| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 131836 | 田祥江 | 19按规则查找数组中的数据 | C++ | Runtime Error | 1 MS | 268 KB | 216 | 2025-10-01 16:38:40 |
#include<bits/stdc++.h> using namespace std; int a[15]; int main(){ int n,m; cin>>n>>m; for(int i=1;i<=n;i++){ cin>>a[i]; } int xb=1; while(m--){ cout<<a[xb]<<" "; xb=a[xb]; } return 0; }
Runtime Error:Segmentation fault