You are viewing a single comment's thread. Return to all comments →
n=int(input())
m=list(map(int,input().split())) m.insert(0,0)
for i in range(1,n+1): a=m[i] b=m.index(a) c=m.index(b) d=m.index(c) print(d)
Seems like cookies are disabled on this browser, please enable them to open this website
Sequence Equation
You are viewing a single comment's thread. Return to all comments →
n=int(input())
m=list(map(int,input().split())) m.insert(0,0)
for i in range(1,n+1): a=m[i] b=m.index(a) c=m.index(b) d=m.index(c) print(d)