Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
146334 张宇泽 序列变换II C++ Accepted 0 MS 272 KB 210 2026-01-28 11:03:07

Tests(10/10):


Code:

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