Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
146342 刘杨国卿 序列变换II C++ Accepted 1 MS 272 KB 200 2026-01-28 11:03:54

Tests(10/10):


Code:

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