Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
112271 | 李朋秦 | 序列变换II | C++ | Accepted | 1 MS | 276 KB | 245 | 2025-03-09 10:26:23 |
#include<bits/stdc++.h> using namespace std; int main() { int a[1000],b,c=0,d[1000],e; cin>>b; for(int i=0;i<b;i++){ cin>>a[i]; }for(int j=0;j<b;j++){ c=a[j]-1; e=a[c]-1; d[j]=a[e]; cout<<d[j]<<" "; } return 0; }