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()))
b = []

for i in range(n):
  for j in range(n):
    if a[j] == i + 1:
      b.append(i+1)
      break

print(' '.join(b))

n = int(input())
a = list(map(int,input().split()))
b = [0 for i in range(n)]

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

print(' '.join(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())
A = list(map(int,input().split()))
i_a = [a,i+1 for i,a in enumerate(A)]
i_a.sort()

ans = []
for i,a in i_a:
  ans.append(a)
  
print(' '.join(map(str,ans)))

N = int(input())
A = list(map(int,input().split()))
i_a = [[a,i+1] for i,a in enumerate(A)]
i_a.sort()

ans = []
for i,a in i_a:
  ans.append(a)
  
print(' '.join(map(str,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):
n = int(input())
a = list(map(int, input().split()))
ans = [0 for i in range(n)]
for i in reversed(range(1, n+1)):
    ans[a.pop()] = i
    
print(*ans)



n = int(input())
a = list(map(int, input().split()))
ans = []
for i in range(n,1):
    ans[a.pop()] = i
    
print(*ans)


from collections import deque
n = int(input())
a = deque(list(map(int, input().split())))
ans = []
for i in range(1,n+1):
    ans[a.popleft()] = i
    
print(*ans)

n = int(input())
a = list(map(int, input().split()))
ans = [0 for i in range(n)]
for i in range(n,1):
    ans[a.pop()] = i
    
print(*ans)

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


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 i in range(N):
    print(A.index(i+1)+1,end=" ")

import numpy
N=int(input())
A=list(map(int,input().split()))
print(*numpy.argsort(A)+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())
h = list(map(int, input().split()))
for i in range(1, n+1):
  print(h.index(i)+1, end =  " ")

n = int(input())
h = list(map(int, input().split()))
cnt = h.sort()
for i in range(n):
  for j int range(j):
    if cnt[i] == h[j]:
      print(h[j], end = "")

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

n = int(input())
h = tuple(map(int, input().split()))
for i in range(1, n+1):
  print(h.index(i)+1, end =  " ")

n = int(input())
h = list(map(int, input().split()))
for i in range(1, n+1):
  for j in range(n):
    if i == h[j]:
      print(j+1, end = " ")

def main():
  n = int(input())
  h = tuple(map(int, input().split()))
  ans = [0]*n
  for i in range(n):
    ans[h[i]-1] = i+1
  print(" ".join(map(str, ans)))

if __name__ == "__main__":
    main()

Verdicts: Time Limit Exceeded

Runtime Error

Runtime Error

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

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)

n = int(input())
a = list(map(int,input().split()))
b = ""
for i in range(n):
    b = b + str(a.index(i+1) + 1) + " "
print(b)

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

Verdicts: Wrong Answer

Wrong Answer

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()))
ans=''
for i in range(1,n+1):
    ans+=str(a.index(i)+1)+' '

print(ans)


n=int(input())
a=input().split()
ans=''
for i in range(1,n+1):
    ans+=str(a.index(str(i))+1)+' '

print(ans)


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


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())
student = list(map(int,input().split()))
 
ans = [0] * n   
 
for i in range(n):
    s = student[i]   
    ans[s-1] = i+1 　

print(*ans)

n = int(input())
student = list(map(int,input().split()))
 
ans = [0] * n   
 
for i in range(n):
    s = student[i]   
    ans[s-1] = i+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):
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))

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

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

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(n):
  print(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] = 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 = list(map(int, input().split()))
b = [i+1 for i in range(n)]
c = list(zip(a, b))
c = sorted(c)
s = " ".join(map(lambda x: x[1], c))
print(s)
  

n = int(input())
a = list(map(int, input().split()))
b = [i+1 for i in range(n)]
c = list(zip(a, b))
c = sorted(c)
s = " ".join(map(lambda x: str(x[1]), c))
print(s)
  


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()))
ans = [0]*N
for i in range(N):
    ans[A[i]-1] = i+1
    print(ans)
print(ans)


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)


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: 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())
h = [int(x) for x in input().split()]
for i in range(1,N+1):
  print(h.index(i)+1,"",end="")


N = int(input())
h = [int(x) for x in input().split()]
t= [0]*N
for i in range(1,N+1):
  t[h[i-1]-1]=i
print(*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):
import numpy as np

N = int(input())
Stu = list(input().split())

x = np.argsort(Stu)
for i in range(N):
    Stu[i] = x[i]

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


mport numpy as np

N = int(input())
Stu = list(input().split())
Stu2 = [int(i) for i in Stu]
print(Stu2)

x = np.argsort(Stu2)
print(x)
for i in range(N):
    Stu[i] = x[i] + 1

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


import numpy as np

N = int(input())
Stu = list(input().split())
Stu2 = [int(i) for i in Stu]

x = np.argsort(Stu2)
for i in range(N):
    Stu[i] = x[i] + 1

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


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):
import numpy as np
input()
print(np.array(input().split(), dtype=np.int32).argsort() + 1)

import numpy as np
input()
print(*(np.array(input().split(), dtype=np.int32).argsort() + 1))

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):
import numpy as np
N=int(input())
A=np.array(list(map(int, input().split())))
l=[]
for _ in range(N):
  l.append(A.argmin()+1)
  A[A.argmin()]=N+1
print(l)

import numpy as np
_=int(input())
A=np.array(list(map(int, input().split())))
B=np.argsort(A)
B=B+1
B=B.tolist()
B=map(str, B)
C=' '.join(B)
print(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()))
b=[0]*n
for i in range(n):
    for l in range(n):
        if a[i]==l+1:
            b[i]=l+1
            break
print(*b)

n=int(input())
a=list(map(int,input().split()))
b=[0]*n
for i in range(n):
    b[i]=[a[i],i+1]
b=sorted(b, key=lambda x: x[0])
for i in range(n):
    if i!=n-1:
        print(b[i][1],end=" ")
    else:
        print(b[i][1])

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())
li = list(map(int, input().split()))
for i in range(N):
  print(li.index(i+1) + 1, end = " ")

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

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

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=list(map(int,input().split()))

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

ansdic=sorted(B.items(), key=lambda x:x[0])
l=[]
for i in ansdic:
    l.append(i[1])

print(l)

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

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

ansdic=sorted(B.items(), key=lambda x:x[0])
l=[]
for i in ansdic:
    l.append(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(1,N+1):
    ans.append(A.index(i)+1)
print(ans)

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

N = int(input())
A = list(map(int,input().split()))
ans = [0] * N
for i,val in enumerate(A):
    ans[val-1] = i+1
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()))

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


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


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())
order = [int(x) for x in input().split()]
order_sorted = sorted(range(len(order)), key=lambda k: order[k])
order_sorted = [x+1 for in x order_sorted]
print(*order_sorted)

N = int(input())
order = [int(x) for x in input().split()]
order_sorted = sorted(range(len(order)), key=lambda k: order[k])
order_sorted = [x+1 for x in order_sorted]
print(*order_sorted)

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

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

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 = map(int, input())
array = list(map(int, (input().split())))
map = {}
# make map to get table.
for i in range(n):
    map[array[i]] = i+1
# from 1 to n
list = []
for i in range(1, n+1):
    list.append(map[i])
print(list)

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)

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)

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

n = input()
array = map(int, input().split())
map = {}
# make map to get table.
for i in range(n):
    map[array[i]] = i+1
# from 1 to n
list = []
for i in range(1, n+1):
    list.append(map[i])
print(list)

n = int(input())
array = list(map(int, input().split()))
for i in range(n):
    map[array[i]] = str(i+1)
print(" ".join([map[i] for i in range(1, n+1)]))

n = map(int, input())
array = list(map(int, input().split()))
map = {}
# make map to get table.
for i in range(n):
    map[array[i]] = i+1
# from 1 to n
list = []
for i in range(1, n+1):
    list.append(map[i])
print(list)

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

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

Runtime Error

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()))
ans = []
for i in range(N):
  for j in range(N):
    if i == j:
      ans.append(A[i])
print(ans)

n=int(input())
A=list(map(int,input().split()))
ans=[0]*n
for i in range(n):
  ans[A[i]-1]=str(i+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):
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]))


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


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


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())
s=list(map(int,input().split()))

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

n=int(input())
s=[ int(i) for i in  input().split()]
l=[0]*n

for i in range(n):
  l[s[i]-1]=str(i+1)
print(' '.join(l))



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()))
arrN=[0]*n
for i in range(N):
    arrN[A[i]-1]=i+1
print(*arrN)

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

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()))
c = []

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

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


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

for i in b:
    c.append(a.index(i)+1)

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

n = int(input())
a = list(map(int, input().split()))
index=[0]*n

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

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


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()))
B = [0]*N


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

print(B)

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)

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):
  ans += str(a.index(i + 1) + 1) + ' '
  
print(ans)

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

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

l.sort()

res = str(l[0][1])
for i in range(1, n):
    res = res + " " + str(l[0][i])
print(res)


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

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

l.sort()

print(" ".join([str(l[i][1]) for i in range(0, n)]))


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=input()
a=list(map(int,input().split()))
s=list()
for i in range(n):
  s.append(a.index(i))
print(' '.join(s))

n=int(input())
a=list(map(int,input().split()))
s=[0]*n
for i,m in enumerate(a):
  s[m-1]=i+1
b=map(str,s)
print(' '.join(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())
li = list(map(int, input().split()))

r = []
result = ""

for i in range(1, N + 1):
    a = li.index(i)
    result = result + str(a + 1) + " "

print(result)

import numpy as np

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

r = []

for i in range(1,N+1):
    a = li.index(i)
    r.append(a)

result = ""

for t in r:
    result = result + str(t+1) + " "

print(result)

import numpy as np
 
N = int(input())
li = list(map(int,input().split()))
 
r = []
result = ""
 
for i in range(1,N+1):
    a = li.index(i)
    result = result + str(a+1) + " "
    
print(result)

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

r = [0]*N

for index in range(N):
    l = li[index]
    r[l-1] = index+1

print(r)


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

r = [0]*N

for index in range(N):
    l = li[index]
    r[l-1] = str(index+1)

print(" ".join(r))


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):
N=int(input())
Ai=list(map(int,input().split()))

dic={}

for i in range(1,N+1):
    a=Ai.index(i)+1
    dic[i]=a

ans=''
for i in range(1,N+1):
    ans+=str(dic[i])+' '
print(ans)

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

ans=''

for i in range(1,N+1):
    a=Ai.index(i)+1
    ans+=(str(a)+' ')

print(ans)

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

# ans=[]
ans=[]*N


    # a=Ai.index(i)+1
    # ans.append(str(a))
for i in range (N):
    ans[Ai[i]-1]=str(i+1)

print(' '.join(ans))


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

# ans=[]
ans=[0]*N


    # a=Ai.index(i)+1
    # ans.append(str(a))
for i in range (N):
    ans[Ai[i]-1]=str(i+1)

print(' '.join(ans))


Verdicts: Time Limit Exceeded

Time Limit Exceeded

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()))
ans=[]
for i in range(1,len(a)+1):
  ans.append(a.index(i)+1)
print(ans)

n=int(input())
a=list(map(int,input().split()))
ans=[0]*n
for i , j in enumerate(a):
  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):
#14
N =int(input())
a = list(map(int,input().split()))
b = ""

for i in range(N):
    b += str(a.index(i+1)+1) + " "
    
    
print(b)

N = int(input())
A = list(map(int, input().split()))
L = [[] for i in range(N)]
for i in range(N):
    L[i] = [A[i], i+1]
L.sort()
ans = [0 for i in range(N)]
for i in range(N):
    ans[i] = L[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())
A = np.array(list(map(int, input().split())))

ans = []
for i in range(n):
  tmpidx = np.argmin(A)
  A[tmpidx] = 10 ** 9
  print(tmpidx+1)

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

ans = []
for i in range(n):
  tmpidx = A.index(min(A))
  A[tmpidx] = 10 ** 9
  print(tmpidx+1)

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

ans = []
for i in range(n):
  tmpidx = A.index(min(A))
  ans.append(tmpidx+1)
  A[tmpidx] = 10 ** 9
  
for a in ans:
  print(a)

import numpy as np

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

ans = []
for i in range(n):
  tmpidx = np.argmin(A)
  A[tmpidx] = np.inf
  ans.append(tmpidx+1)

print(*ans)

import numpy as np

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

ans = []
for i in range(n):
  tmpidx = np.argmin(A)
  A[tmpidx] = 10 ** 9
  ans.append(tmpidx+1)

print(ans)

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

ans = [0 for _ in range(n)]
for i in range(n):
  ans[A[i]-1] = i+1

print(*ans)

Verdicts: Time Limit Exceeded

Time Limit Exceeded

Time Limit Exceeded

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 = list(map(int, input().split()))

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

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

ans_list = [0] * N

for index, i in enumerate(A_list):
    ans_list[i - 1] = index + 1

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



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 = [i for i in map(int, input().split())]

order = [0] * N
for i in range(N):
    order[int(A[i]) - 1] = i + 1
print(order)

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

order = [0] * N
for i in range(N):
    order[int(A[i]) - 1] = i + 1
print(" ".join([str(j) for j in order]))

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(1, N+1):
    ans.append(A.index(i))

print(*ans, sep=" ")

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

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()))
l=""
for i in range(N):
    l=l+str(a.index(i+1)+1)+" "
print(l)

N=int(input())
a=list(map(int,input().split()))
l=""
for i in range(N):
    print(a.index(i+1)+1,end=" ")

N=int(input())
a=list(map(int,input().split()))
b=[0]*N
for index, m in enumerate(a):
    b[m-1]=index+1
print(*b)

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 = list(map(int, input().split()))
b = []
for i in range(n):
    b.append([i, a[i]])
b = sorted(b, key=lambda x: x[1])
c = []
for k, v in b:
    c.append(k+1)
print(' '.join(map(str, c))

n = int(input())
a = list(map(int, input().split()))
b = []
for i in range(n):
    b.append([i, a[i]])
b = sorted(b, key=lambda x: x[1])
c = []
for k, v in b:
    c.append(k+1)
print(' '.join(map(str, c)))

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

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

all = sorted(all.items(), key=lambda x:x[0])

list = []
for i in range(N):
    list.append(all[i][1])

print(list)

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

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

all = sorted(all.items(), key=lambda x:x[0])


for i in range(N):
    if i == N-1:
        print(all[i][1])
    else:
        print(all[i][1], end=' ')

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(str,input().split()))
ans=[o for i in range(N)]
for i in range(N):
  ans[i]=A.index("i")
print(*ans)

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


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()))
for i in range(1,n):
    print(str(A.index(i)+1)+" ",end="")
print(str(A.index(n)+1),end="")
    

n=int(input())
A=list(map(int,input().split()))
ans=[None for i in range(n)]
for i in range(n):
    ans[A[i]-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 = list(map(int, input().split()))

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

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

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 sys

input_line = input()
N= int(input_line)

input_line = input()
student_num = list(map(int,input_line.split()))

buff = [0 for i in range(N)]
for i in range(len(student_num)):
    buff[student_num[i]-1] = i+1
print(buff)

import sys

input_line = input()
N= int(input_line)

input_line = input()
student_num = list(map(int,input_line.split()))

buff = [0 for i in range(N)]
for i in range(len(student_num)):
    buff[student_num[i]-1] = i+1
print(' '.join(map(str, buff)))

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()))
B = [None for _ in range(N)]
sB = [None for _ in range(N)]
for i in range(N):
  for j in range(1,N+1):
    if A[i] == j:
      B[i] = j
    sB[i] = str(B[i])
ans = ' '.join(str(a) for a in sB)
print(ans)


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

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

B.sort()

ans = [0 for i in range(N)]
for i in range(N):
    ans[i] = B[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()))
ans = [0] * n
for i in range(n):
    ans[a[i]-1] = i+1
print(ans)

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

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: 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=list(map(int,input().split()))
b=[0]*n
for i in range(n):
  x=a[i]
  b[x-1]=i+1
c=" ".join(b)
print(c)

n=int(input())
a=list(map(int,input().split()))
b=[0]*n
for i in range(n):
  x=a[i]
  b[x-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())
a = list(map(int,input().split()))
b = [[0,0]*n]
c = []
for i in range(n):
    b[i][1] = a[i]
    b[i][0] = i+1
b.sort(key=lambda x:x[1])
for i in range(n):
    c.append(b[i][0])
print(*c)


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


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



Verdicts: Runtime Error

Runtime Error

Accepted