Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
2417 邓小龙 序列变换 C++ Accepted 0 MS 264 KB 332 2024-01-06 13:22:54

Tests(10/10):


Code:

# include<iostream> using namespace std; int main(){ int n,temp1=0,temp2=0; cin>>n; int a[n],b[n]; for(int i=0;i<n;i++) cin>>a[i]; for(int i=0;i<n;i++){ temp1=a[i]; temp2=a[temp1-1]; b[i]=temp2; } for(int i=0;i<n;i++) cout<<b[i]<<" "; return 0; }