Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
84513 胡海峰老师 序列变换II Python3 Accepted 37 MS 3772 KB 144 2024-07-16 09:42:09

Tests(10/10):


Code:

n = int(input()) a = list(map(int,input().split())) b = [] for i in range(n): val = a[ a[a[i]-1]-1 ] b.append(val) print(*b)