Problem:


Score : 300 points

Problem Statement

Takahashi is a teacher responsible for a class of N students.

The students are given distinct student numbers from 1 to N.

Today, all the students entered the classroom at different times.

According to Takahashi's record, there were A_i students in the classroom when student number i entered the classroom (including student number i).

From these records, reconstruct the order in which the students entered the classroom.

Constraints

 1 \le N \le 10^5 

 1 \le A_i \le N 

 A_i \neq A_j  (i \neq j)

All values in input are integers.

Input

Input is given from Standard Input in the following format:

N
A_1 A_2 \ldots A_N

Output

Print the student numbers of the students in the order the students entered the classroom.

Sample Input 1

3
2 3 1

Sample Output 1

3 1 2

First, student number 3 entered the classroom.

Then, student number 1 entered the classroom.

Finally, student number 2 entered the classroom.

Sample Input 2

5
1 2 3 4 5

Sample Output 2

1 2 3 4 5

Sample Input 3

8
8 2 7 3 4 5 6 1

Sample Output 3

8 2 4 5 6 7 3 1



Sample input:
3
2 3 1


Sample output:
3 1 2

Submission status: Wrong Answer

Solution code:
n = int(input())
attendance_book = list(map(int, input().split()))
attendance_order = []
for i in range(n):
  j = attendance_book[i]-1
  attendance_order.insert(j, i+1)
print(attendance_order)

Submission status: Wrong Answer

Solution code:
N=int(input())
S=input().split()
num=1
out=''
for i in range(N):
  S[i]=int(S[i])
while num<N:
  for i in range(N):
    if S[i]==num:
      out=out+str(i+1)+' '
      num+=1
print(out)

Submission status: Wrong Answer

Solution code:
import numpy as np
s = ''
t = ''
n = int(input())
s = np.argsort(input().split(' '))

for i in range(n):
	t += str(s[i]+1)
	if i != n-1:
		t += ' '
print(t)

Submission status: Wrong Answer

Solution code:
N = int(input())

A = list(map(int,input().split()))

B = [0]*N

for i in range(N):
    B[i] = N+1 - A[i]

for i in B:
    print(i, end=" ")

Submission status: Wrong Answer

Solution code:
input()
li=list(map(int,input().split()))
enu_li=[[i,value] for i,value in enumerate(li,1)]

enu_li=sorted(enu_li,key=lambda x:x[1])

result=[value[0] for value in enu_li]

print(result)

Submission status: Wrong Answer

Solution code:
import numpy as np
n = int(input())
a = input().split()
s = ''
t = ''
s = np.argsort(a)

for i in range(n):
	s[i] += 1 
	t += str(s[i])
	if i != n-1:
		t += ' '
print(t)

Submission status: Wrong Answer

Solution code:
import numpy as np

n = int(input())
a = input().split()
s = ''
t = ''
s = np.argsort(a)

for i in range(n):
	s[i] += 1 
	t += str(s[i])
	if i != n-1:
		t += ' '



print(t)

Submission status: Wrong Answer

Solution code:
import numpy as np

n = int(input())
a = input().split()
s = ''

s = np.argsort(a)



print(s)

Submission status: Wrong Answer

Solution code:
stu_num = int(input())
num_list = input().split(" ")
num_tuple_list = []
for i in range(stu_num):
    num_tuple_list.append((num_list[i], i + 1))


def tup0(tup):
    return tup[0]


num_tuple_list.sort(key=tup0)
ans_list = [i[1] for i in num_tuple_list]
for i in range(stu_num):
    print(ans_list[i], end="")
    if i != stu_num - 1:
        print(" ", end="")
    else:
        print()

Submission status: Wrong Answer

Solution code:
stu_num = int(input())
num_list = input().split(" ")
num_tuple_list = []
for i in range(stu_num):
    num_tuple_list.append((num_list[i], i + 1))


def tup0(tup):
    return tup[0]


num_tuple_list.sort(key=tup0)
ans_list = list(map(lambda x: x[1], num_tuple_list))
for i in range(stu_num):
    print(ans_list[i], end="")
    if i != stu_num - 1:
        print(" ", end="")
    else:
        print()

Submission status: Wrong Answer

Solution code:
stu_num = int(input())
num_list = input().split(" ")
num_tuple_list = []
for i in range(stu_num):
    num_tuple_list.append((num_list[i], i + 1))


def tup0(tup):
    return tup[0]


num_tuple_list.sort(key=tup0)
ans_list = list(map(lambda x: x[1], num_tuple_list))
for i in range(stu_num):
    print(ans_list[i], end="")
    if i != stu_num - 1:
        print(" ")

Submission status: Wrong Answer

Solution code:
N    = int(input())
order=list(map(int,input().split()))
output=[]

print(order)

for i in range(N):
    output.append((order.index(i+1))+1)
print(' '.join(map(str,output)))

Submission status: Wrong Answer

Solution code:
n = int(input())
a = [int(i) for i in input().split()] 

for i in range(1,n+1):
  print(a[a.index(i)])

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int, input().split()))

ans = [0]*n

for i in range(n):
    ans[a[i]-1] = i + 1

print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())

A_list = list(map(int, input().split()))

ans = [A_list.index(i+1)+1 for i in range(N)]

for i in range(N):
    print(i, end=" ")

Submission status: Wrong Answer

Solution code:
N = int(input())

A_list = list(map(int, input().split()))

ans = [A_list.index(i+1)+1 for i in range(N)]

print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
A = list(map(int, input().split()))
B = [0] * (N +1)

for i in range(N):
    B[A[i]] = i+1
print(B[1:])

Submission status: Wrong Answer

Solution code:
N = int(input())
A = sorted([(int(ai),i+1) for i,ai in enumerate(input().split(" "))], key=lambda x: x[0])
for ai,_ in A: print(ai, end=" ")

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int, input().split()))
b = []
index = list(range(1, n+1))
dic_a = dict(zip(a, index))
#print(dic_a)
sorted_dic_a = dict(sorted(dic_a.items()))
for i in sorted_dic_a.values():
    b.append(i)
print(b)

Submission status: Wrong Answer

Solution code:
n=int(input())
a=list(map(int,input().strip().split(' ')))
x=[0]*n
for i in range(n):
  x[a[i]-1]=i+1
for i in a:
  print(i,end=" ")
print()

Submission status: Wrong Answer

Solution code:
N = int(input())
A = list(map(int,input().split()))
school_order = {}
for i in range(N):
  school_order[A[i]] = i+1

ans = []
for j in school_order.values():
  ans.append(j)
print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())

student_lst = input().split()
student_lst = [int(i) for i in student_lst]

out_lst = [0] * n

print(student_lst)
print(out_lst)
k = 0
for j in range(1,n+1):
    idx = student_lst.index(j)
    out_lst[j-1] = idx + 1

str_lst = [str(p) for p in out_lst]
list = ' '.join(str_lst)
print(list)

Submission status: Wrong Answer

Solution code:
n = int(input())

student_lst = input().split()
student_lst = [int(i) for i in student_lst]

out_lst = [0] * n

print(student_lst)
print(out_lst)
k = 0
for j in range(1,n+1):
    idx = student_lst.index(j)
    out_lst[j-1] = idx + 1

print(out_lst)

Submission status: Wrong Answer

Solution code:
n = int(input())
turn = [int(i) for i in input().split()]
print(turn)

Submission status: Wrong Answer

Solution code:
n = int(input())
num = [int(i) for i in input().split()]
student = []
for i in range(1, n + 1):
  student.append(num.index(i) + 1)
print(student)

Submission status: Wrong Answer

Solution code:
N = int(input())
A = list(map(int,input().split()))
B = []
for i in range(N):
  for o in range(N):
    if A[o] == i+1:
      B.append(o+1)
map(str,B)
print(B)

Submission status: Wrong Answer

Solution code:
N = int(input())
std_num = list(map(int,input().split()))[:N]
std_id = list(range(N))
for index in range(N):
	id = index + 1
	i = std_num[index] - 1
	std_id[i] = id
print(std_id)

Submission status: Wrong Answer

Solution code:
N = int(input())
INPUT_2 = list(map(int, input().split()))

dic = {}
for i, num  in enumerate(INPUT_2):
    dic[num-1] = i+1

dic2 = sorted(dic.items())

answer = []

for i in range(len(INPUT_2)):
    answer.append(dic2[i][1])

print(answer)

Submission status: Wrong Answer

Solution code:
############################
N = int(input())
while 1 > N or  10**5 < N:
    N = int(input())
else:
    pass
    
############################
INPUT_2 = list(map(int, input().split()))

ERORR_COUNT_1 = 0
for i in INPUT_2:
    if 1 <= i <= N:
        pass
    else:
        ERORR_COUNT_1+=1

ERORR_COUNT_2 = 0
for i in INPUT_2:
    if INPUT_2.count(i) >= 2:
        ERORR_COUNT_2 += 1
    else:
        pass

while len(INPUT_2) != N or ERORR_COUNT_1 > 0 or ERORR_COUNT_2 > 0:
    
    INPUT_2 = list(map(int, input().split()))

    ERORR_COUNT_1 = 0
    for i in INPUT_2:
        if 1 <= i <= N:
            pass
        else:
            ERORR_COUNT_1+=1

    ERORR_COUNT_2 = 0
    for i in INPUT_2:
        if INPUT_2.count(i) >= 2:
            ERORR_COUNT_2 += 1
        else:
            pass

else:
    pass
    
############################
dic = {}
for i, num  in enumerate(INPUT_2):
    dic[num-1] = i+1

dic2 = sorted(dic.items())

answer = []

for i in range(len(INPUT_2)):
    answer.append(dic2[i][1])

print(answer)

Submission status: Wrong Answer

Solution code:
############################
N = int(input())
if 1 <= N <= 10**5:
    pass
else:
    N = int(input())
    
############################
INPUT_2 = list(map(int, input().split()))

ERORR_COUNT_1 = 0
for i in INPUT_2:
    if 1 <= i <= N:
        pass
    else:
        ERORR_COUNT_1+=1

ERORR_COUNT_2 = 0
for i in INPUT_2:
    if INPUT_2.count(i) >= 2:
        ERORR_COUNT_2 += 1
    else:
        pass

if ERORR_COUNT_1 == 0 and ERORR_COUNT_2 == 0:
    pass
else:
    INPUT_2 = list(map(int, input().split()))
    
############################
dic = {}
for i, num  in enumerate(INPUT_2):
    dic[num-1] = i+1

dic2 = sorted(dic.items())

answer = []

for i in range(len(INPUT_2)):
    answer.append(dic2[i][1])

print(answer)

Submission status: Wrong Answer

Solution code:
import numpy as np
n = int(input())
a = list(map(int,input().split(" ")))
b = [0]*n
order = ""
for i in range(n):
	b[a[i]-1]= i+1
for i in b:
  order += str(i) + " "
print(order.rstrip)

Submission status: Wrong Answer

Solution code:
n = map(int, input())
arr = list(map(int, input().split(" ")))
print(list(map(lambda k: k+1,sorted(range(len(arr)), key=lambda k: arr[k]))))

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int,input().split()))
b = []
for i in range(n):
  b.append([a[i], i+1])
b.sort()
ans = []
for i in range(n):
  ans.append(b[i][1])
print(''.join(map(str, ans)))

Submission status: Wrong Answer

Solution code:
N = int(input())
A = [(i, v) for i, v in enumerate(input().split(), 1)]

B = sorted(A, key=lambda x: x[1])
ans = [t[0] for t in B]
print(*ans, sep=' ')

Submission status: Wrong Answer

Solution code:
N = int(input())
A = map(int, input().split())
ans = [0]*N
num = 1
for i in A:
    ans[i-1] = num
    num += 1
print(ans)

Submission status: Wrong Answer

Solution code:
N=int(input())
n = list(map(int, input().split()))
s=sorted(range(len(n)), key=lambda k: n[k])
s=list(map(lambda k:k+1,s))
print(s)

Submission status: Wrong Answer

Solution code:
N = int(input())
A = list(map(int,input().split()))
B = [0]*N


for i in range(len(A)):
  B[A[i]-1] = i+1

print(B)

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int,input().split()))
b = ""
for i in range(n):
    b += "0 "

for i in range(n):
    b =b[:(a[i]-1)* 2] + str(i+1) + b[(a[i]-1)* 2 + 1:]
print(b)

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int,input().split()))
b = [0 for i in range(n)]
ans = ""
for i in range(n):
    b[a[i]-1] = i+1
    print(b)
for j in range(n):
    ans = ans + str(b[j]) + " "
print(ans)

Submission status: Wrong Answer

Solution code:
import numpy as np

N = int(input())
A = list(map(int,input().split()))
ans = np.empty(N)

for i in range(N):
    ans[A[i]-1] = i+1

print (str(ans).replace('[','').replace('.','').replace(']',''))

Submission status: Wrong Answer

Solution code:
# N人数
# 教室にいる人数

N = int(input())
A = list(map(int, input().split()))
work = {}

# 連想配列に
for n in range(N):
    work[n + 1] = A[n]

# ソートする
work = dict(sorted(work.items(), key=lambda x:x[1]))

ans = []
for k,v in work.items():
    ans.append(str(k))

print(" ".join(ans))

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int,input().split()))
b = []

for i in range(n):
    b.append(0)

for j in range(n):
    b[a[j]-1] = j+1
    
print(b)

Submission status: Wrong Answer

Solution code:
# N人数
# 教室にいる人数

N = int(input())
A = list(map(int, input().split()))
work = {}

# 連想配列に
for n in range(N):
    work[n] = A[n]

# ソートする
work = dict(sorted(work.items(), key=lambda x:x[1]))

ans = []
for k,v in work.items():
    ans.append(str(k + 1))

print(" ".join(ans))

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
n = int(input())
a = list(map(int, input().split()))
b = [0]*n
for i in range(n):
    b[a[i]-1] = i+1
print(b) 
print(" ".join(map(str,b)))

Submission status: Wrong Answer

Solution code:
N = int(input())
A = [int(x) for x in input().split()]
tmp = list()
for n in range(len(A)):
  tmp.append([n+1, A[n]])
tmp = sorted(tmp, key=lambda x: x[1])
res = list()
for x in tmp:
  res.append(x[0])
print(res)

Submission status: Wrong Answer

Solution code:
n=int(input())
a=list(map(int,input().split()))
d={}
for i in range(1,1+n):
    d[a[i-1]]=i
sortd=sorted(d.items(),key=lambda x:x[0])
sl=[0]*n
print(sortd)
for i in range(n):
    sl[i]=sortd[i][1]
print(*sl)

Submission status: Wrong Answer

Solution code:
N=int(input())
A=list(map(int,input().split()))
box=[]

for i in range(N):
  box.insert(A[i]-1,i+1)
print(box)

Submission status: Wrong Answer

Solution code:
N=int(input())
A=list(map(int,input().split()))
box=[]

for i in range(N):
  box.insert(A[i]-1,i)
print(box)

Submission status: Wrong Answer

Solution code:
N=int(input())
A=list(map(int,input().split()))
box=[]

for i in range(N):
  box.insert(A[i],i)
print(box)

Submission status: Wrong Answer

Solution code:
n = int(input())
a = map(int, input().split())
b = [i for i in range(1, n+1)]
c = dict(zip(a, b))
print(c)
c = dict(sorted(c.items()))
print(c)
for i in c.values():
    print(i, end = " ")

Submission status: Wrong Answer

Solution code:
N = int(input())
A = list(map(int, input().split()))

B = list(range(1,N+1))
ab = []
for i in range(N):
    ab.append([A[i], B[i]])
print(ab)
ab.sort()
print(ab)
for i in range(N):
    print(ab[i][1], end = " ")

print()

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int,input().split()))
res = []
for i,e in enumerate(a):
    res.append((e,i))
res.sort()
ans = []
for i in res:
    ans.append(i[1]+1)
print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int, input().split()))
ans = []
for i in range(n):
    for j in range(n):
        if(a[j] == i + 1):
            ans.append(j+1)
print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
A = list(map(int, input().split()))
B = [0] * (N + 1)
for i in range(N):
    B[A[i]] = i + 1
print(B[1:])

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int, input().split()))
b = [0] * n
for i in range(n):
    b[a[i] - 1] = str(i + 1)
    print(b)
print(' '.join(b))

Submission status: Wrong Answer

Solution code:
n = int(input())

a = list(map(int, input().split()))

ans = []

for i in range(1, n+1):
    ans.append(a.index(i) + 1)

print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
A = list(map(int,input().split()))
leng = len(A)
B = []
for i in range(leng):
    B.append([A[i],i])
B.sort()
C = []
for i in range(leng):
    C.append(B[i][1]+1)
print(C)

Submission status: Wrong Answer

Solution code:
import numpy as np
n = int(input())
a = list(map(int, input().split()))
print(np.argsort(a) + 1)

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int, input().split()))
a3 = [ a[i - 1] for i in a ]
print(a3)

Submission status: Wrong Answer

Solution code:
N = int(input())
A = list(map(int,input().split()))
ans = [0]*N
for i in range(N):
    ans[A[i]-1] = i+1
print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
A = list(map(int,input().split()))
ans = [0]*N
for i in range(N):
    ans[A[i]-1] = i+1
    print(ans)
print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int, input().split()))
l = sorted([(i, a[i]) for i in range(n)])

print(*[l[i][1] for i in range(n)])

Submission status: Wrong Answer

Solution code:
N=int(input())
A=list(map(int,(input().split())))
ans=[]
for i in range(N):
    a=(A.index(i+1))+1
    ans.append(a)
ANS=(map(str,ans))
kotae=" ".join(ANS)
kotae

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int, input().split()))
ans = [0 for _ in range(n)]
for i in range(1, n + 1):
    ans[i - 1] = a.index(i) + 1
print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
A = list(map(int, input().split()))
X = sorted([(i, a) for i, a in enumerate(A)], key=lambda x:x[1])
ans = ""
for x in X:
  ans += "%d "%x[0]
print(ans)

Submission status: Wrong Answer

Solution code:
t=int(input().strip())
li=[0]*500000
num=map(int,input().strip().split())
for idx,val in enumerate(num):
    li[val-1]=idx+1
for i in range(t):
    print(li[i],end='')
print()

Submission status: Wrong Answer

Solution code:
N = int(input().split()[0])
aa = input().split()
bb = []

for i in range(1, N+1):
    bb.append(aa.index(str(i)))

print(*bb)

Submission status: Wrong Answer

Solution code:
N = int(input())
A = map(int, input().split())

result = []
for i, a in enumerate(A):
    result.append({'i':i, 'a': a})

result.sort(reverse=True, key=lambda x: x['a'])
print(' '.join([str(x['a']) for x in result]))

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
def main():
    N = int(input())
    A = list(map(int,input().split()))
    num = [-1 for _ in range(N)]
    for i in range(N):
        num[A[i]-1] = i+1

    print(num)

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
N = int(input())
A = list(map(int, input().split()))
res = [0 for _ in range(N)]

for i in range(N):
    
    res[A[i] - 1] = str(i + 1)

' '.join(res)

Submission status: Wrong Answer

Solution code:
n=int(input())
a=list(map(int,input().split()))
b=[]
for i in range(n):
    b.append([a[i],i+1])
    print(b)
b.sort()
print(b)
for i in b:
    print(i[1],end=' ')

Submission status: Wrong Answer

Solution code:
N = int(input())

A = list(map(int, input().split()))

B = sorted(range(1, len(A) + 1), key=lambda k: A[k - 1])

print(B)

Submission status: Wrong Answer

Solution code:
import numpy as np
n = int(input())
a = list(map(int, input().split()))
print(np.argsort(a)+1)

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
    n = int(input())
    """studentNumbers = [(x, str(i)) for x, i in
        zip(input().split(), range(1, 1000000))]
    studentNumbers.sort(key=lambda tup: tup[0])
    print(' '.join([x[1] for x in studentNumbers]))"""
    studentNumbers = [(str(i + 1), x) for i, x in enumerate(input().split())]
    if (n > 1):
        studentNumbers.sort(key=lambda tup: tup[1])
    print(' '.join([x[0] for x in studentNumbers]))

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
    n = int(input())
    """studentNumbers = [(x, str(i)) for x, i in
        zip(input().split(), range(1, 1000000))]
    studentNumbers.sort(key=lambda tup: tup[0])
    print(' '.join([x[1] for x in studentNumbers]))"""
    studentNumbers = [(x, str(i + 1)) for x, i in zip(input().split(), range(n))]
    if (n > 1):
        studentNumbers.sort(key=lambda tup: tup[0])
    print(' '.join([x[1] for x in studentNumbers]))

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
    n = int(input())
    """studentNumbers = [(x, str(i)) for x, i in
        zip(input().split(), range(1, 1000000))]
    studentNumbers.sort(key=lambda tup: tup[0])
    print(' '.join([x[1] for x in studentNumbers]))"""
    studentNumbers = [(x, str(i + 1)) for x, i in zip(input().split(), range(n))]
    studentNumbers.sort(key=lambda tup: tup[0])
    print(' '.join([x[1] for x in studentNumbers]))

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
    n = int(input())
    studentNumbers = [(x, str(i)) for x, i in
        zip(input().split(), range(1, n+1))]
    studentNumbers.sort(key=lambda tup: tup[0])
    print(' '.join([x[1] for x in studentNumbers]))

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
    n = int(input())
    studentNumbers = [(x, str(i)) for x, i in
        zip(input().split(), range(1, n+1))]
    sortedArrivalTimes = sorted(studentNumbers, key=lambda tup: tup[0])
    print(' '.join([x[1] for x in sortedArrivalTimes]))

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
    n = int(input())
    studentNumbers = [(x, str(i)) for x, i in zip(input().split(), range(1, n))]
    sortedArrivalTimes = sorted(studentNumbers, key=lambda tup: tup[0])
    print(' '.join([x[1] for x in sortedArrivalTimes]))

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
    n = int(input())
    studentNumbers = [(x, str(i)) for x, i in zip(input().split(), range(1, n + 1))]
    sortedArrivalTimes = sorted(studentNumbers, key=lambda tup: tup[0])
    print(' '.join([x[1] for x in sortedArrivalTimes]))

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
    n = int(input())
    studentNumbers = [(x, i) for x, i in zip(input().split(), range(1, n + 1))]
    sortedArrivalTimes = sorted(studentNumbers, key=lambda tup: tup[0])
    print([x[1] for x in sortedArrivalTimes])

Submission status: Wrong Answer

Solution code:
N = int(input())
arr = {j:i for i,j in enumerate(input().split())}
arr = sorted(arr.items(), key=lambda x:x[0])
print(" ".join([str(v+1) for _, v in arr]))

Submission status: Wrong Answer

Solution code:
N = int(input())
arr = {j:i for i,j in enumerate(input().split())}
arr = sorted(arr.items(), key=lambda x:x[0])
print(" ".join([str(v) for _, v in arr]))

Submission status: Wrong Answer

Solution code:
N = int(input())
arr = {j:i for i,j in enumerate(input().split())}
arr = sorted(arr.items(), key=lambda x:x[0])
for k, v in arr:
    print(v+1, end=" ")
print()

Submission status: Wrong Answer

Solution code:
def func(N, A_i):
    ans = [0]*N
    for i in range(N):
        ans[A_i[i]-1] = i+1
    return ans

N = int(input())
A_i = list(map(int, input().split(" ")))
print(func(N, A_i))

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int, input().split()))
ans = [[0]*2 for _ in range(n)]
for i in range(n):
    ans[i][0] = a[i]
    ans[i][1] = i+1
ans.sort()
for i in range(n):
    print(str(ans[i][1]), end="")

Submission status: Wrong Answer

Solution code:
num = int(input())
each_num = list(map(int, input().split(" ")))

ans = []

i = 1
for k in range(1, num+1):
    ans.append(each_num.index(k))
print(*ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
A = list(map(int, input().split()))
B = {str(A[i]):str(i+1) for i in range(N)}
print(' '.join(B))

Submission status: Wrong Answer

Solution code:
n = int(input())
array = list(map(int, input().split()))
map = {}
for i in range(n):
    map[array[i]] = i+1
list = []
for i in range(1, n+1):
    list.append(map[i])
print(list)

Submission status: Wrong Answer

Solution code:
n = int(input())
array = list(map(int, input().split()))
map = {}

print(n)
for i in range(n):
    map[array[i]] = i+1

list = []
for i in range(1, n+1):
    print(type(i))
    list.append(map[i])
print(list)

Submission status: Wrong Answer

Solution code:
N=int(input())
A=[int(i) for i in input().split()]
lists=[None]*N

for i in range(N):
    lists[A[i]-1]=i+1
print(lists)

Submission status: Wrong Answer

Solution code:
N=int(input())
A=list(map(int,input().split()))
#A=int(input().split())
print(A)
B=[ 0 for _ in range(N)]
print(B)
ans=""
for i in range(N):
  B[A[i]-1]=i+1
#  ans+=str(A.index(i+1)+1)
#  if i!=N-1:
#    ans+=" "
print(B)

Submission status: Wrong Answer

Solution code:
from operator import itemgetter

N = int(input())
A = list(map(int, input().split()))

print(*[t[0] for t in sorted(enumerate(A), key=itemgetter(1))])

Submission status: Wrong Answer

Solution code:
N = int(input(""))
A = list(map(int,input("").split()))
B = []

for i in range(1, N+1):
    B.append(A.index(i)+1)

# for i in B:
#     print(i,end=" ")
print(B)

Submission status: Wrong Answer

Solution code:
N = int(input("N="))
A = list(map(int,input("A=").split()))
B = []

for i in range(1, N+1):
    B.append(A.index(i)+1)

for i in B:
    print(i,end=" ")

Submission status: Wrong Answer

Solution code:
N = int(input("N="))
A = list(map(int,input("A=").split()))
B = []

for i in range(1, N+1):
    B.append(A.index(i)+1)

print(B)

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list( map(int, input().split(" ")) )

answer = []
for v, i in zip(a, range(n)):
    answer.append(a[v-1])

print(*answer)

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list( map(int, input().split(" ")) )

answer = []
for i in range(n):
    answer.append(a[i])

print(*answer)

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list( map(int, input().split(" ")) )

for i in range(n):
    print(a[i])

Submission status: Wrong Answer

Solution code:
n = int(input())
a = input().split()
tmp = [(a[i], int(i+1)) for i in range(n)]
tmp.sort()
for i in range(n):
  print(tmp[i][1], end=" ")

Submission status: Wrong Answer

Solution code:
N = int(input())
A = list(map(int, input().split()))
B = [(A[i],i) for i in range(N)]
B.sort()
for b in B:
    print(b[1])

Submission status: Wrong Answer

Solution code:
from numpy import*;_,a=open(0);print(*argsort(a.split())+1)

Submission status: Wrong Answer

Solution code:
a = input()
b = []
b = input().split()
i = 0
cnt = 1   
while cnt <= int(a):
    if cnt == int(b[i]) and cnt != int(a):
        print(i + 1, end=' ')
        cnt += 1
        i = 0
    elif cnt == int(a):
        print(i + 1)
        break
    elif i == len(b) - 1:
        i = 0
    else:
        i += 1

Submission status: Wrong Answer

Solution code:
def main():
  n=int(input())
  l=list(map(int,input().split()))
  k=[0]*n
  for i in range(1,n+1):
    k[i-1]=str(l.index(i)+1)
  print(" ".join(k))


if __name__ == '__main__':
    print(main())

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int, input().split(" ")))
print(a.index(x)+1 for x in range(1, n+1))

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int, input().split(" ")))
list = [a.index(x)+1 for x in range(1, n+1)]
print(list)

Submission status: Wrong Answer

Solution code:
n=int(input())
l=input()
print(" ".join([str(l.find(str(i))+1) for i in range(1,n+1)]))

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int,input().split()))
b = [0 for l in range(n)]

for i in range(n):
    b[a[i]-1] = i+1
    print(b[i],end="")
    print(" ",end="")

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int, input().split()))
b = []
for i in range(n):
  c = [a[i], i]
  b.append(c)
b.sort(key=lambda x: x[0])
for i in range(n):
  print(b[i][1], end=" ")

Submission status: Wrong Answer

Solution code:
N = int(input())
A = list(map(int, input().split()))
junb = []
inde = 0
basyo = 0
for touko in A:
    basyo = A.index(touko) + 1
    junb.append(basyo)
    inde += 1
print(junb)

Submission status: Wrong Answer

Solution code:
import numpy as np
import sys
 
N = input()
a = list(int(i) for i in input().split())
an = np.array(a)
a_sort = np.argsort(an)
for i in a_sort:
  s = 1 + 1
  sys.stdout.write(str(s)+" ")

Submission status: Wrong Answer

Solution code:

import sys
import numpy as np
input = sys.stdin.readline
N = int(input())
A = list(map(int, input().split()))
np_A = np.array(A)

S = []
for i in range(N):
    S.append(np_A.argmax()+1)
    A[np_A.argmax()] -= 100000

for i in reversed(S):
    print(str(i) + " ")

Submission status: Wrong Answer

Solution code:
N=int(input())

b=list(map(int,input().split()))

b
c=[i+1 for i in range(N)]

ans=[]

for i in range(len(b)):
    ans.append([b[i],c[i]])
    
ans1=sorted(ans)
ans2=[i[1] for i in ans1]

print(ans2)

Submission status: Wrong Answer

Solution code:
import numpy as np

N = input()
a = list(int(i) for i in input().split())
an = np.array(a)
a_sort = np.argsort(an)
print(a_sort)

Submission status: Wrong Answer

Solution code:
N, A = int(input()), list(map(int, input().split()))
S = ''
for i in range(1, N+1):
  P = A.index(i) + 1
  S += ' '.join(str(P) + ' ')
print(S)

Submission status: Wrong Answer

Solution code:
c = int(input())
a = list(map(int,input().split()))
b = []

for i in range(1,len(a)+1):
  for j in range(len(a)):
    if i == a[j]:
      b.append(j+1)
      
print(','.join(str(b)))

Submission status: Wrong Answer

Solution code:
N=input()
QsList=list(map(int,input().split()))

tmpList=QsList[:]
tmpList.sort()
tmp=0
AnsList=QsList[:]
for i in QsList:
  a=int(tmpList.index(i))
  AnsList[a]=tmp
  tmp=tmp+1  
print(*AnsList)

Submission status: Wrong Answer

Solution code:
N = int(input())
students_dict = {}
students = [int(x) for x in input().split()]
for i, s in enumerate(students):
    students_dict[i + 1] = str(s)
jyuni = sorted(students_dict.items(), key=lambda x:x[1])
for i in jyuni:
    print(str(i[0]) + ' ', end='')
print()

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
N = input()
N = int(N)
A = list(map(int, input().split()))

for i in range(len(A)):
	A[i] = [A[i], i]
A.sort()
for j in range(len(A)):
	A[j] = str(A[j][1] )
print(' '.join(A))

Submission status: Wrong Answer

Solution code:
N = int(input())
A = []
A = input().split()
A = [int(n) for n in A]

B = [int(0) for n in range(N)]

for i in range(N) :
  B[i] = A[A[i] - 1]
  


#print('N', N)
#print('A', A)
#print('B', B)

B = [str(n) for n in B]

result = ' '.join(B)

print(result)

Submission status: Wrong Answer

Solution code:
import numpy as np

N = int(input())
A= list(map(int, input().split()))
A=np.array(A)
S=np.array(range(N))

con=np.vstack([A,S])

con=con[:, con[0,:].argsort()]
ans=con[1,]+1
#ans=list(ans)

print(ans)

Submission status: Wrong Answer

Solution code:
import numpy as np
N = int(input())
A = [int(x) for x in input().split()]
list= np.arange(1,N+1)
for i in range(N):
    list[A[i]-1]=i+1
print(list)

Submission status: Wrong Answer

Solution code:
N = int(input())
listA = list(map(int, input().split()))
listB = []
for j in listA:
  listB.append(0)
c = 1

for i in listA:
  listB[i-1] = c
  c += 1

print(listB)

Submission status: Wrong Answer

Solution code:
N = int(input())
A_list = list(map(int,input().split()))

score =  {}
for i,A in enumerate(A_list):
    score[A] = i + 1 

print(score)
score_sorted = dict(sorted(score.items(), key=lambda x:x[0]))
for A, i in score_sorted.items():
    print(i)

Submission status: Wrong Answer

Solution code:
a=int(input())
X=input()
Y=X.split()
Z=[]
for k in range(1,len(Y)+1):
        for j in range(len(Y)):
            if int(Y[j])==k:
                Z.append(j+1)
            ++j
        ++k
print(Z)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

N = int(input())
num_list = list(map(int, input().split()))
order_list = sorted(range(len(num_list)), key=lambda k: num_list[k])
order_list = list(map(lambda x: x+1, order_list))
print('{}'.format(order_list))

Submission status: Wrong Answer

Solution code:
n = input()
n = int(n)
N = list(map(int,input().split()))
C = []
for i in range(n):
    C.append(i+1)

ch = []
a = 1
for j in range(n):
    for k in range(0,n):
        if N[k] == a:
            ch.append(str(C[k]))
            a +=1
print(ch)
print(' '.join(ch))