| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 154868 | 刘杨国卿 | 19按规则查找数组中的数据 | C++ | Runtime Error | 0 MS | 272 KB | 234 | 2026-05-31 10:58:50 |
#include<bits/stdc++.h> using namespace std; int main() { int n,m,s=0; cin>>n>>m; int a[101]; for(int i=1;i<=n;i++){ cin>>a[i]; } int t=1; for(int i=1;i<=m;i++){ cout<<a[t]<<" "; t=a[t]; } return 0; }
Runtime Error:Segmentation fault