Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
86520 汤弘毅 序列变换II Python3 Accepted 35 MS 3772 KB 175 2024-07-25 21:26:32

Tests(10/10):


Code:

n = int(input()) old = list(map(int,input().split())) new = [] for i in range(n): s = old[i] s = old[s-1] new.append(str(old[s-1])) print(' '.join(new))