You are viewing a single comment's thread. Return to all comments →
s=int(input()) f=list(map(int,input().split())) for i in range(s): print(f[f[i]-1])
Security Permutations
You are viewing a single comment's thread. Return to all comments →
s=int(input()) f=list(map(int,input().split())) for i in range(s): print(f[f[i]-1])