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

Tests(10/10):


Code:

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