Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
146326 万麟峰 序列变换II C++ Accepted 0 MS 272 KB 204 2026-01-28 10:54:08

Tests(10/10):


Code:

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