Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
150401 编程星球02 序列变换II C++ Accepted 1 MS 276 KB 333 2026-03-27 22:36:59

Tests(10/10):


Code:

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