| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 73062 | 谢绍澜 | 19按规则查找数组中的数据 | C++ | Output Limit Exceeded | 1 MS | 272 KB | 288 | 2024-05-16 19:04:44 |
#include <iostream> using namespace std; int main() { int n,m,j=1; cin>>n,m; int a[n],b[n]; for(int i=0;i<n;i++){ cin>>a[i]; } cout<<a[0]; for(int i=0;i<n;i++){ j=a[j-1]; cout<<" "<<a[j-1]; } return 0; }