| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 140090 | 杜禹轩 | 19按规则查找数组中的数据 | C++ | Output Limit Exceeded | 0 MS | 280 KB | 210 | 2025-12-13 15:12:58 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,m,z=1,a[1000]; cin>>n>>m; for(int i=1;i<n;i++){ cin>>a[i]; }for(int i=1;i<n;i++){ z=a[z]; cout<<z<<" "; } return 0; }