TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: 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.

Submission attempts (in order):
N=int(input())
A=list(map(int,input().split()))

s=""
for i in range(N):
    for j in range(N):
        if A[j]==i+1:
            s+="{} ".format(j+1)
            break
print(s)



from operator import itemgetter

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

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

Verdicts: Time Limit Exceeded

Accepted
Problem: 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.

Submission attempts (in order):
N = int(input())
A = [int(i) for i in input().split()] 
C = [0] * (N)

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

print(C)

N = int(input())
A = [int(i) for i in input().split()] 
C = [0] * (N)

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

print(' '.join(map(str,C)))

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
N = int(input())
A = list(map(int, input().split()))
A_re = []

for i in range(N):
  num = A[i]
  A_re.append([num, i+1])
  
A_re.sort()

Ans = []
for j in range(N):
  ans = A_re[j][1]
  Ans.append(ans)
  
print(Ans)

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

for i in range(N):
  num = A[i]
  A_re.append([num, i+1])
  
A_re.sort()

Ans = []
for j in range(N):
  ans = A_re[j][1]
  Ans.append(ans)
  
print(' '.join(Ans))

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

for i in range(N):
  num = A[i]
  A_re.append([num, i+1])
  
A_re.sort()

Ans = []
for j in range(N):
  ans = A_re[j][1]
  Ans.append(str(ans))
  
Ans = ' '.join(Ans)
print(Ans)

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
N=int(input())
A = list(map(int, input().split()))
C=[]
for i in range(0,N):
    C.append(A.index(i+1)+1)
print(C)

N=int(input())
A = list(map(int, input().split()))
B=A
B.sort()
C=[]
for i in range(0,N):
    for j in range(0,N):
        if A[j]==B[i]:
            C.append(i+1)

print(C)

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
n=int(input())
a=[int(x) for x in input().split()]
ans=[0]*n
for i in range(0,n):
    ans[a[i]-1]=i+1
print(ans)
print(*ans)

n=int(input())
a=[int(x) for x in input().split()]
ans=[0]*n
for i in range(0,n):
    ans[a[i]-1]=i+1
print(*ans)

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
n, m = map(int, input().split())
disk, idx = list(range(n + 1)), list(range(n + 1))

now = 0
for _ in range(m):
    nxt = int(input())
    disk[idx[nxt]], idx[nxt], idx[now] = now, 0, idx[nxt]
    now = nxt
print(*disk[1:], sep="\n")

n = int(input())
a = list(map(int, input().split()))
a = {v: i+1 for i, v in enumerate(a)}
ans = [a[i] for i in range(1, n+1)]
print(*ans)

Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
import bisect
n=int(input())
l=list(map(int,input().split()))
s=''
for i in range(1,n+1):
    s+=str(l.index(i)+1)+' '
print(s)


import bisect
n=int(input())
l=list(map(int,input().split()))
l_2=[]
for i in range(1,n+1):
    l_2.append(l.index(i)+1)
s=''
for j in range(n):
    s+=str(l_2[j])+' '
print(s)


n=int(input())
l=list(map(int,input().split()))
s=''
for i in range(1,n+1):
    s+=str(l.index(i)+1)+' '
print(s)

n=int(input())
l=list(map(int,input().split()))
l2=[0]*(n+1)
for i,j in enumerate(l,1):
    l2[j]=i 
print(' '.join(map(str,l2[1:])))    


Verdicts: Time Limit Exceeded

Time Limit Exceeded

Time Limit Exceeded

Accepted
Problem: 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.

Submission attempts (in order):
n = int(input())
a = list(map(int,input().split()))

b = []
for i,e in enumerate(a):
  b.append(e,i+1)
  
sort(b)

for i,t in enumerate(b):
  if i == n-1:
    print(t[0])
  else:
    print(t[0],end=' ')

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

b = []
for i,e in enumerate(a):
  b.append(e,i+1)
  
sort(b)

print(' '.join(b))

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

b = []
for i,e in enumerate(a):
  b.append((e,i+1))
  
b.sort()

for i,t in enumerate(b):
  if i == n-1:
    print(t[1])
  else:
    print(t[1],end=' ')

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
N = int(input())
A = list(map(int, input().split()))
L = [0]*N
for i in range(0, N):
    L[A[i]-1] = i + 1
    print(L,A[i])
print(*L)

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

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
n = int(input())
a = list(map(int,input().split()))
ans = ''
for i in range(n):
  i += 1
  ans += str(a.index(i)+1) + ' '
print(ans)

n = int(input())
a = list(map(int,input().split()))
ans = [0 for _ in range(n)]
for i,j in enumerate(a):
  ans[j-1] = str(i+1)
print(' '.join(ans))

Verdicts: Time Limit Exceeded

Accepted
Problem: 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.

Submission attempts (in order):
N = int(input())
A = [int(zz) for zz in input().split()]

[print(A.index(i+1)+1, end=' ') for i in range(N)]


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

ans = []
for i in range(N):
    ans.append([A[i],i+1])

ans.sort()
for i in range(N-1):
    print(ans[i][1],end=' ')
print(ans[-1][1])


Verdicts: Time Limit Exceeded

Accepted
Problem: 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.

Submission attempts (in order):
n = int(input())
a = list(map(int, input().split()))
b = [None] * n
print(str(a.index(1) + 1), end=" ")
for i in range(1, n):
    print(str(a.index(i + 1) + 1), end=" ")
print()


n = int(input())
a = list(map(int, input().split()))
b = [None] * n
print(a.index(1) + 1, end=" ")
for i in range(1, n):
    print(a.index(i + 1) + 1, end=" ")
print("")


import sys
import collections
import bisect


def main():
    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(" ".join(B))


if __name__ == '__main__':
    main()


Verdicts: Time Limit Exceeded

Time Limit Exceeded

Accepted
Problem: 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.

Submission attempts (in order):
n = int(input())
order = list(map(int, input().split()))
for i in range(1, len(order)+1):
  id = order.index(i)
  print(id+1, end = ' ')

n = int(input())
order = list(map(int, input().split()))
while (min(order) != 999999):
  minVal = min(order)
  minIndex = order.index(minVal)
  print(minIndex+1, end = ' ')
  order[minIndex] = 999999

n = int(input())
order = list(map(int, input().split()))
correctOrder = [0 for x in range(n)]
for i in range(n):
    correctOrder[order[i]-1] = str(i+1)
toStr = ' '.join(correctOrder)
print(toStr)


Verdicts: Time Limit Exceeded

Time Limit Exceeded

Accepted
Problem: 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.

Submission attempts (in order):
n = input()
li = list(map(int,input().split()))
lists = []
for j in range(int(n)):
    lists.insert(j, 0)
count = 1
for i in li:
    lists[i-1] = count
    count += 1
print(lists)


n = input()
li = list(map(int,input().split()))
lists = []
for j in range(int(n)):
    lists.insert(j, 0)
count = 1
for i in li:
    lists[i-1] = count
    count += 1
print(' '.join(map(str, lists)))


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
N = int(input())
nu = [int(x) for x in input().split()]
ans = ["a" for x in range(len(nu))]
                          
for i, v in enumerate(nu):
  #print("i=", i)
  #print("v=", v)
  ans[v-1] = i+1
print(ans)

N = int(input())
NU = [int(x) for x in input().split()]
r2 = {}

for i in NU:
  r2[i] = NU.index(i)


j2 = []
for i in range(len(r2)):
  j2.append(r2[i+1]+1)
print(j2)

N = int(input())
nu = [int(x) for x in input().split()]
r2 = {}

for i in nu:
  r2[i] = nu.index(i)
#print(r2)

j2 = []
for i in range(len(r2)):
  j2.append(r2[i+1]+1)
#print(j2)

answ = ""
for i in j2:
  answ = answ + str(i) + " "
print(answ)

N = int(input())
NU = [int(x) for x in input().split()]
r = {}

for i in NU:
  r[NU.index(i)] = i

j = []
for i in range(len(r)):
  j.append(r[i])
print(j)

N = int(input())
nu = [int(x) for x in input().split()]
ans = ["a" for x in range(len(nu))]
                          
for i, v in enumerate(nu):
  #print("i=", i)
  #print("v=", v)
  ans[v-1] = i+1
#print(ans)

answ = ""
for i in ans:
  answ = answ + str(i) + " "
print(answ)

n1 = int(input())
l1 = [int(x) for x in input().split()]
l2 = [""] * 8

for i, v in enumerate(l1):
  l2[v -1] = i + 1

ans = ""
for i in l2:
  ans = ans + str(i) + " "
print(ans[:-1])

N = int(input())
nu = [int(x) for x in input().split()]
r2 = {}

for i in nu:
  r2[i] = nu.index(i)
#print(r2)

kyt = ""
for ky in r2.values():
  ky = str(ky +1)
  kyt = kyt + ky + " "
print(kyt)

n1 = int(input())
l1 = [int(x) for x in input().split()]
l2 = [""] * n1

for i, v in enumerate(l1):
  l2[v -1] = i + 1

l2 = map(str,l2)
ans = " ".join(l2)
print(ans)

Verdicts: Wrong Answer

Wrong Answer

Time Limit Exceeded

Wrong Answer

Time Limit Exceeded

Runtime Error

Time Limit Exceeded

Accepted
Problem: 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.

Submission attempts (in order):
listA=[] 
while True:
    try:
        listA.append(list(map(int,input().split())))

    except:
        break;
        

#print(listA[0],listA[1])
N=listA[0]
i=1
order=[]
listA[1]
import numpy as np
np_=np.array(listA[1])
x=np.argsort(np_)
x1=list(map(lambda y:y+1,x))
print(x1)

listA=[] 
while True:
    try:
        listA.append(list(map(int,input().split())))

    except:
        break;
        

#print(listA[0],listA[1])
N=listA[0]
i=1
order=[]
listA[1]
import numpy as np
np_=np.array(listA[1])
x=np.argsort(np_)
x1=list(map(lambda y:y+1,x))
print(*x1)

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
n = int(input())
a = [int(i) for i in input().split()]

ans = [0] * n

for i, ai in enumerate(a):
    ans[ai-1] = i+1

print(ans)

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

ans = [0] * n

for i, ai in enumerate(a):
    ans[ai-1] = i+1

print(" ".join([str(s) for s in ans]))

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
N = int(input())
A = list(map(int,input().split()))
for i in range(1,N+1):
  print(str(A.index(i)+1) + ' ', end = '')

N = int(input())
A = list(map(int,input().split()))
for i in range(1,N+1):
  print(str(int(A.index(i))+1) + ' ', end = '')

N = int(input())
A = list(map(int,input().split()))
E =[]
for i in range(1,N+1):
  E.append(int(int(A.index(i))+1))
for i in range(0,N): 
  print(str(int(E[i]))+' ',end = '')

N = int(input())
A = list(map(int,input().split()))
E =[]
for i in range(1,N+1):
  E.append(int(int(A.index(i))+1))
for i in range(0,N):
  a = int(E[i])
  print(str(a)+' ',end = '')


N = int(input())
A = list(map(int,input().split()))
D = [0]*N
for i in range(N):
  a = A[i]
  D[a-1] = i+1
d = str(D[0])
for i in range(1,N):
  d += ' '+str(D[i])
print(d)

Verdicts: Time Limit Exceeded

Time Limit Exceeded

Time Limit Exceeded

Time Limit Exceeded

Accepted
Problem: 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.

Submission attempts (in order):
n = int(input())
aes = list(map(int, input().split()))

ans = [ i for i in range(n)]
for i,j in enumerate(aes):
    ans[j-1] = i+1
print(ans)

n = int(input())
aes = list(map(int, input().split()))

ans = [ i for i in range(n)]
for i,j in enumerate(aes):
    ans[j-1] = i+1
print(*ans)

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
N = int(input())

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

for i in range(1, N+1):
    print(A.index(i)+1, end=" ")
print()


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)


Verdicts: Time Limit Exceeded

Accepted
Problem: 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.

Submission attempts (in order):
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)))

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)))

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)))

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
import os, sys, re, math

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

sa = ''
for s in sorted(A):
    sa += '1 '
print(sa.strip())

import os, sys, re, math

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

ta = [(A[i], i + 1) for i in range(N)]
sa = sorted(ta, key=lambda k: k[0])

result = ''
for s in sa:
    result += '%s ' % s[1]
print(result.strip())


Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
n = int(input())
l = list(map(int,input().split()))
ans = ''

for i in range(n):
  ans += str(l.index(i+1) + 1) + ' '
print(ans)

n = int(input())
l = list(map(int,input().split()))
ans = [0] * n

for i in range(n):
  ans[l[i]-1] = i + 1
print(*ans)

Verdicts: Time Limit Exceeded

Accepted
Problem: 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.

Submission attempts (in order):
import numpy as np

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

ans = ""

list(enumerate(Ai))
Aians = sorted(enumerate(Ai), key = lambda x: x[-1])

for ansNum in Aians:
    ans = ans + str(ansNum[0] + 1) + " "

print(ans)

import numpy as np

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

ans = ""

Aians = sorted(enumerate(Ai), key = lambda x: x[-1])

for ansNum in Aians:
    ans = ans + str(ansNum[0] + 1) + " "

print(ans)

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

ans = ""

Aians = sorted(enumerate(Ai), key = lambda x: x[-1])

for ansNum in Aians:
    ans = ans + str(ansNum[0] + 1) + " "

print(ans)

import numpy as np

N = int(input())
#Ai = list(map(int, input().split()))
Ai = input().split()

ans = ""

Aians = sorted(enumerate(Ai), key = lambda x: x[-1])

for ansNum in Aians:
    ans = ans + str(ansNum[0] + 1) + " "

print(ans)

import numpy as np
N = int(input())
Ai = list(map(int, input().split()))


print(' '.join(map(str, np.argsort(Ai) + 1)))



Verdicts: Time Limit Exceeded

Time Limit Exceeded

Time Limit Exceeded

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
#C - Go to School
import numpy as np

N = int(input())
L = list(map(int, input().split()))
X = []
for i in range(len(L)):
    X.append(L.index(i+1)+1)
print(X)

N = int(input())
L = list(map(int, input().split()))
b = [0]*N

for i, num in enumerate(L):
    b[num-1] = i+1

print(*b)

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
# ABC142C

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


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


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


Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
N = int(input())
As = list(map(int, input().split()))

for i in range(N):
  print(As.index(i+1) + 1, end = " ")

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

ans = [0] * N

for i, A in enumerate(As):
  ans[A-1] = i+1
  
print(*ans)

Verdicts: Time Limit Exceeded

Accepted
Problem: 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.

Submission attempts (in order):
n = int(input())
a = input().split()
s = ''
iList = [[ 0 for i in range(n)] for i in range(n)]


MIN = 100


for i in range(n):
	a[i] = int(a[i])
	iList[i][0] = a[i]
	iList[i][1] = i+1
for i in range(n):
	for j in range(n):
		if iList[i][0] < iList[j][0]:
			t = iList[i]
			iList[i] = iList[j]
			iList[j] = t
for i in range(n):
	s += str(iList[i][1])
	s += ' '


print(s)


n = int(input())
ans = []
A = list(map(int,input().split()))
A2 = [[0,i+1] for i in range(n)]

for i in range(n):
	A2[i][0] = A[i]
print(A2)
A2 = sorted(A2,key = lambda x:x[0])

for i in range(n):
	ans.append(A2[i][1])
print(*ans)


import numpy as np

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

s = np.argsort(a)

for i in range(n):
	s[i] += 1 
s.strip("[")
s.strip("]")


print(s)


import numpy as np

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

s = np.argsort(a)



print(s)


n = int(input())
ans = []
A = list(map(int,input().split()))
A2 = [[0,i+1] for i in range(n)]

for i in range(n):
	A2[i][0] = A[i]
#print(A2)
A2 = sorted(A2,key = lambda x:x[0])

for i in range(n):
	ans.append(A2[i][1])
print(*ans)


Verdicts: Runtime Error

Wrong Answer

Runtime Error

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
n=int(input())
a=list([map(int,input().split()),_ for _ in range(1,n+1)])
a.sort()
l=(a[i][1] for i in range(n))
print(list(l))

n=int(input())
a=list(map(int,input().split()))
b=list(range(1,n+1))
ab=list(zip(a,b))
ab.sort()
l=(ab[i][1] for i in range(n))
print(list(l))

n=int(input())
a=list(map(int,input().split()))
b=list(for _ in range(1,n+1))
ab=list(zip(a,b))
ab.sort()
l=(ab[i][1] for i in range(n))
print(list(l))

n=int(input())
a=list(map(int,input().split()))
b=list(range(1,n+1))
ab=list(zip(a,b))
ab.sort()
l=(str(ab[i][1]) for i in range(n))
l=list(l)
print(' '.join(l))

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
import numpy as np
n = int(input())
a = list(map(int, input().split()))
print(np.argsort(a) + 1)

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

n = int(input())
a = list(map(int, input().split()))
a2 = sorted(a)
a3 = [ a2[i + 1] for i in a2 ]
print(a3)

import numpy as np
n = int(input())
a = list(map(int, input().split()))
a2 = np.argsort(a) + 1
a3 = map(str, a2) 
mojiretsu = ' '.join(a3)

print(mojiretsu)

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
import numpy as np

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

AA = np.argsort(A) + 1

print(AA.to_list())


import numpy as np
 
N = int(input())
A = list(map(int, input().split()))
A = np.array(A)
 
AA = np.argsort(A) + 1

print(*AA)


Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
N = int(input())
A = list(map(int,input().split()))
A_ = sorted(A)
ans = []
for i in range(N):
  ans.append(A.index(A_[i])+1)
print(ans)

N = int(input())
A = list(map(int,input().split()))
ans = ['']*N
for id,name in enumerate(A):
  ans[name-1] = str(id+1)
print(' '.join(ans))

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
n=int(input())
l=list(map(int,input().split()))
for i in range(1,n+1):
    print(l.index(i)+1,end=' ')

n=int(input())
l=list(map(int,input().split()))
t=[0]*n
i=1
for e in l:
    t[e-1]=str(i)
    i+=1
print(' '.join(t))


Verdicts: Time Limit Exceeded

Accepted
Problem: 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.

Submission attempts (in order):
n,*a=map(int,open(0).read().split())
for i in range(n):
    print(a.index(i+1)+1,end=' ')

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

Verdicts: Time Limit Exceeded

Accepted
Problem: 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.

Submission attempts (in order):
N = int(input())
As = [int(i) for i in input().split()]
ans = [0]*N
string = ''
for i, A in enumerate(As):
    ans[i] = str(A)
joined_ans = ' '.join(ans)
print(joined_ans)

N = int(input())
As = [int(i) for i in input().split()]
ans = [0]*N
string = ''
for i, A in enumerate(As):
    ans[i] = A
for i in ans:
    string += str(i) + ' '
print(string)

N = int(input())
As = [int(i) for i in input().split()]
ans = [0]*N
for i, A in enumerate(As):
    ans[A-1] = str(i+1)
joined_ans = ' '.join(ans)
print(joined_ans)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
N = int(input())
A = [int(i) for i in input().split()]
a = [0] * N
for i in range(N):
    a[A[i]-1] = i + 1
print(*A)

N = int(input())
A = [int(i) for i in input().split()]
a = [0] * N
for i in range(N):
    a[A[i]-1] = i + 1
print(*a)

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
N    = int(input())
order=list(map(int,input().split()))

for i in range(N):
    print((order.index(i+1))+1, end=' ')

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)))


N    = int(input())
order=list(map(int,input().split()))
output=[0]*N

for i in range(N):
    output[order[i]-1]=i+1

print(' '.join(map(str,output)))

Verdicts: Time Limit Exceeded

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
import numpy as np
N = int(input())
A = [int(x) for x in input().split()]
B = [0 for _ in range(N)]
for i in range(N):
    B[A[i]-1] = i+1
print(B)

N = int(input())
A = [int(x) for x in input().split()]
B = [0 for _ in range(N)]
for i in range(N):
    B[A[i]-1] = i+1
print(*B)

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
n=int(input())
a=list(map(int,input().split()))
nu={}
for i in range(len(a)):
  nu[a[i]+1]=i+1
nu=sorted(nu.items())
b=[]
for i in nu:
  b.append(i[1])
print(b)

n=int(input())
a=list(map(int,input().split()))
nu={}
for i in range(len(a)):
  nu[a[i]+1]=i+1
nu=sorted(nu.items())
b=[]
for i in nu:
  b.append(str(i[1]))
mojiretu = ' '.join(b)
print(mojiretu)

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
n = int(input())
a = list(map(int, input().split()))
s = [0] * n
for i in range(n):
    s[a[i]-1] += i+1 
print(s) 

n = int(input())
a = list(map(int, input().split())
s = [0] * n
for i,j in enumerate(a):
    s[j-1] = i+1
print(*s)

n = int(input())
a = list(map(int, input().split()))
s = [0] * n
for i,j in enumerate(a):
    s[j-1] += i+1 
print(*s) 


Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
N = int(input())
A = list(map(int,input().split()))

P = []

for i in range(N):
    temp = A.index(i+1) + 1
    print(temp,end=' ')
#    temp = str(temp)
#    P.append(temp)


#print(' '.join(P))


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

P = ['']*N

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


print(' '.join(P))


Verdicts: Time Limit Exceeded

Accepted
Problem: 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.

Submission attempts (in order):
n = int(input())
a = list(map(int, input().split()))

for i in range(n):
  print(a.index(i+1)+1 , end=" ")

n = int(input())
a = list(map(int, input().split()))
 
l = ''
for i in range(n):
  l += '{} '.format(a.index(i+1)+1)
print(l)

n = int(input())
l = list(map(int, input().split()))

s = sorted(range(n), key=lambda x:l[x])

for i in range(n):
  s[i]+= 1
  
print(*s)

Verdicts: Time Limit Exceeded

Time Limit Exceeded

Accepted
Problem: 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.

Submission attempts (in order):
n = int(input())
a_lst = list(map(int, input().split()))
ans = []
for i in range(1,n+1):
    ans.append(a_lst.index(i)+1)
print(ans)

n = int(input())
a_lst = list(map(int, input().split()))
lst = []
for i,a in enumerate(a_lst):
    lst.append([i+1,a])
ans = []
for l in sorted(lst, key=lambda x:x[1]):
    ans.append(l[0])
print(' '.join(map(str,ans)))

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
n = int(input())
A = list(map(int, input().split()))

ans = [0] * n

for i in range(n):
    ans[i] = A.index(i+1) + 1
    A.remove(i+1)
print(' '.join(map(str, ans)))

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

ans = [0] * n

for i in range(n):
    ans[i] = A.index(i+1) + 1
print(ans)

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

ans = [0] * n

for idx, i in enumerate(A):
    ans[i-1] = idx + 1
    
print(' '.join(map(str, ans)))

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):

from sys import stdin
import heapq

N = int(input())
As = [int(x) for x in stdin.readline().rstrip().split()]
ans = ""

for i in range(N):
    small = heapq.nsmallest(i + 1, As)
    index = As.index(small[i])
    ans += str(index + 1) + " "

print(ans)



from sys import stdin
import heapq

N = int(input())
As = [int(x) for x in stdin.readline().rstrip().split()]
ans = [0] * N

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

print(ans)



from sys import stdin
import heapq

N = int(input())
As = [int(x) for x in stdin.readline().rstrip().split()]
ans = [0] * N

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

ans = ' '.join(map(str, ans))
print(ans)


Verdicts: Time Limit Exceeded

Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
N = int(input())
A = list(map(int,input().split()))

for n in range(N):
  print(A.index(n+1)+1,end=" ")

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

for n in range(N):
  B[A[n]-1] = n+1
  
print(*B)

Verdicts: Time Limit Exceeded

Accepted
Problem: 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.

Submission attempts (in order):
# -*- coding: utf-8 -*-
n = int(input())
a = list(map(int, input().split()))

ans = [ 0 for _ in range(n)]
for i, aa in enumerate(a):
    aa -= 1
    ans[aa] = i+1

print(ans)

# -*- coding: utf-8 -*-
n = int(input())
a = list(map(int, input().split()))

ans = [ 0 for _ in range(n)]
for i, aa in enumerate(a):
    aa -= 1
    ans[aa] = i+1

print(" ".join(map(str, ans)))

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
N=int(input())
Students=list(map(int,input().split()))


d={}

for i in range(N):
    d[i+1]=Students[i]

d_2 = sorted(d.items(),key=lambda x: x[1])

ans=[]
for k in d_2:
    ans.append(k[0])

print(ans)

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

b=[]
for i in range(n):
    tmp=[i+1,a[i]]
    b.append(tmp)

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


ans=[]
for j in b:
    ans.append(j[0])

print(*ans)

Verdicts: Wrong Answer

Accepted
Problem: 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.

Submission attempts (in order):
n = int(input())
a = list(map(int, input().split()))

ans = [0]*n

for i in range(n):
    ans[a[i]-1] = i + 1
print(" ".join(mao(str, ans)))

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

for i in range(n):
    print(str(a.index(i+1) + 1), end=" ")

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

ans = [0]*n

for i in range(n):
    ans[a[i]-1] = i + 1
print(" ".join(map(str, ans)))

Verdicts: Runtime Error

Time Limit Exceeded

Accepted
Problem: 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.

Submission attempts (in order):
from enum import Enum
from queue import Queue

import numpy as np

import collections
import bisect
import sys
import math

from scipy.sparse.csgraph import floyd_warshall

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*)  


from enum import Enum
from queue import Queue

import numpy as np

import collections
import bisect
import sys
import math

from scipy.sparse.csgraph import floyd_warshall

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)  


Verdicts: Runtime Error

Accepted
Problem: 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.

Submission attempts (in order):
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)

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)

Verdicts: Wrong Answer

Accepted