Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
112266 李朋秦 序列变换 C++ Presentation Error 1 MS 272 KB 230 2025-03-09 09:58:31

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int a[1000],b,c=0,d[1000]; cin>>b; for(int i=0;i<b;i++){ cin>>a[i]; }for(int j=0;j<b;j++){ c=a[j]-1; d[j]=a[c]; cout<<" "<<d[j]; } return 0; }