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):
from operator import itemgetter
N=int(input())
A=list(map(int,input().split()))
ans=[[i+1,j] for i,j in (enumerate(A))]

print(*ans)

#ABC142_C
N=int(input())
A=list(map(int,input().split()))
ans=[i+1 for i,_ in sorted(enumerate(A))]
print(*ans)

#ABC142_C
N=int(input())
A=list(map(int,input().split()))
ans=[i+1 for i,_ in sorted(enumerate(A),key=itemgetter(1))]
print(*ans)

#ABC142_C
N=int(input())
A=list(map(int,input().split()))
ans=[i+1 for i,_ in sorted(enumerate(A),key=itemgetter(1))]

print(*ans)

#ABC142_C
from operator import itemgetter
N=int(input())
A=list(map(int,input().split()))
ans=[i+1 for i,_ in sorted(enumerate(A),key=itemgetter(1))]

print(*ans)

Verdicts: Wrong Answer

Wrong Answer

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()))
count = 1
l = []

for i in range(0,N):
	l.append(A[i]-1)
	
print(' '.join(map(str, l)))

N = int(input())
A = list(map(int,input().split()))
count = 1
l = []

for i in range(0,N):
	tmp = A[i]
	A[i] = i+1
	
print(' '.join(map(str, A)))

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

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

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

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

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

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

L = [0]*n

for i, order in enumerate(l, 1):
    L[order-1] = i

print(*L)

n = int(input())

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

ans = [0] * n   
 
for i in range(n):
    s = a[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 main():
    n  =int(input())
    students = list(map(int,input().split()))
    number = [i for i in range(n)]
    students_number = []
    for i in range(n):
        students_number.append([students[i]] + [number[i]])
    sorted_students_number = sorted(students_number,key = lambda x:x[1])
    ans = [i[0] for i in sorted_students_number]
    print(*ans)

if __name__ == "__main__":
    main()


def main():
    n  =int(input())
    students = list(map(int,input().split()))
    number = [i for i in range(n)]
    students_number = []
    for i in range(n):
        students_number.append([students[i]] + [number[i]])
    sorted_students_number = sorted(students_number,key = lambda x:x[0])
    ans = [i[1] for i in sorted_students_number]
    print(sorted_students_number)
    print(*ans)

if __name__ == "__main__":
    main()


def main():
    n  = int(input())
    students = list(map(int,input().split()))
    number = [i for i in range(1,n+1)]
    students_number = []
    for i in range(n):
        students_number.append([students[i]] + [number[i]])
    sorted_students_number = sorted(students_number,key = lambda x:x[0])
    ans = [i[1] for i in sorted_students_number]
    print(*ans)

if __name__ == "__main__":
    main()


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 = input().split()

B = sorted(range(len(A)), key=lambda k: A[k])
resutl = ""
for i in B:
    resutl += (str(i+1) + " ")
print(resutl.rstrip())N = int(input())
A = input().split()

B = [0]*N
j = 0
for i in A:
    j += 1
    B[int(i)-1] = j

resutl = ""
for i in B:
    resutl += (str(i) + " ")
print(resutl.rstrip())

N = int(input())
A = input().split()

B = [0]*N
j = 0
for i in A:
    j += 1
    B[int(i)-1] = j
    if

resutl = ""
for i in B:
    resutl += (str(i) + " ")
print(resutl.rstrip())

N = int(input())
A = input().split()

B = [0]*N
j = 0
for i in A:
    j += 1
    B[int(i)-1] = j

resutl = ""
for i in B:
    resutl += (str(i) + " ")
print(resutl.rstrip())

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())
attendance_book = list(map(int, input().split()))
attendance_order = []
for i in range(n):
  j = attendance_book[i]-1
  attendance_order.insert(j, i+1)
print(attendance_order)

n = int(input())
attendance_book = list(map(int, input().split()))
attendance_order = [0 for i in range(n)]
for i in range(n):
  j = attendance_book[i]-1
  attendance_order[j] = i+1
print(' '.join(map(str, attendance_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 = [int(x) for x in input().split()]
tmp = list()
for n in range(len(A)):
  tmp.append([n+1, A[n]])
tmp = sorted(tmp, key=lambda x: x[1])
res = ""
for x in tmp:
  res.append(x[0])
print(' '.join(res))

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

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

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

Verdicts: Runtime Error

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(lambda x:int(x), input().split()))

junban = []

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




n = int(input())

a = list(map(lambda x:int(x), input().split()))



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


n = int(input())

a = list(map(lambda x:int(x), input().split()))

junban = []
for i in range(n):
    junban.append(0)

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



print(" ".join(junban))





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 = [ int(i) for i in input().split()]
b = [""] * n

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

print(" ".join(b))

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

for ai, i in enumerate(a):
    b[ai] = str(i)

print(" ".join(b))

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

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

print(" ".join(b))

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):
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()))
li = np.argsort(a)+1
print(*li)

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(A.index(i)+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: 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(str(a.index(i+1)+1) + " ",end = "")


n = int(input())

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

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

print(" ".join(map(str,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())
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()))
b=list(range(1,n+1))
dic=dict(zip(a,b))
dic=sorted(dic.items())
c=[]
for i in dic:
    c.append(i[1])
print(*c)

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()))
res = []
for i,e in enumerate(a):
    res.append((e,i))
res.sort()
ans = []
for i in res:
    ans.append(i[1]+1)
print(" ".join(ans))

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

n = int(input())
a = list(map(int,input().split()))
res = []
for i,e in enumerate(a):
    res.append((e,i))
res.sort()
ans = []
for i in res:
    ans.append(i[1]+1)
print(" ".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):
n, *a = map(int, open(0).read().split())

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


n, *a = map(int, open(0).read().split())

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

ans=""
for i in range(1,N+1):
    ans += " " + str(list.index(i)+1)
    
print(ans)

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

ans = [0]*N
for i, a in enumerate(A):
    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 = [int(x) for x in input().split()]
ans_list = []
for i in range(1, len(A) + 1):
  #print(i)
  for j in range(1, len(A) + 1):
    #print(j)
    if i == A[j - 1]:
      ans_list.append(j)
  break

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

N = int(input())
A = [int(x) for x in input().split()]
ans_list = []
for i in range(1, len(A) + 1):
  #print(i)
  for j in range(1, len(A) + 1):
    #print(j)
    if i == A[j - 1]:
      ans_list.append(j)
      break
    
print(ans_list)

N = int(input())
A = [int(x) for x in input().split()]
ans_list = [0]*N
for i, j in enumerate(A, 1): 
  ans_list[j - 1] = i

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

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):
  b[a[i] - 1 ] = i
  
print(*b)

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: 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 = [0]+list(map(int, input().split()))
print(sorted(range(len(A)), key=lambda k: A[k])[1:])


N = int(input())
A = [0]+list(map(int, input().split()))
print(*sorted(range(len(A)), key=lambda k: A[k])[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 sys

stdin = sys.stdin

ns = lambda : stdin.readline().rstrip()
ni = lambda : int(ns())
na = lambda : map(int, stdin.readline().split())

def main():
  n = ni()
  a = list(na())
  res = []
  for i in range(1,n+1):
    res.append(a[i])
  print(*res)

main()

import sys

stdin = sys.stdin

ns = lambda : stdin.readline().rstrip()
ni = lambda : int(ns())
na = lambda : map(int, stdin.readline().split())

def main():
  n = ni()
  a = list(na())
  d = {}
  for i, a in enumerate(a):
    d[a] = i+1
  res = []
  for i in range(n):
    res.append(d[i+1])
  print(*res)

main()

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

l = []
AA = A.copy()

for k in range(N):
    Amin = min(AA)
    print(Amin)
    a = A.index(Amin)
    l.append(a + 1)
    AA.remove(Amin)
print(*l)

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

l = [0] * N

for i, a in enumerate(A):
    l[int(a - 1)] = str(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):
    s = a[i]
    ans[s-1] = i + 1
    
print(ans)

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

ans = []

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

print(ans)

import random

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

random.shuffle(a)

print(a)


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

random.shuffle(a)

print(a)


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

ans = [0] * n

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

print(ans)

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

ans = [0] * n

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

print(*ans)

Verdicts: Runtime Error

Wrong Answer

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


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

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


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

A2 = [0]*N

for i, a in enumerate(A, 1):
    A2[a-1] = i

print(*A2)
 

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())
Alist = list(map(int, input().split()))
V = [0 for v in range(N)]
for i in range(1,N+1):
  A = Alist[i]
  V[A] += i
print(*A)

N = int(input())
Alist = list(map(int, input().split()))
V = [0 for v in range(N)]
for i in range(N):
  V[Alist[i]] += i+1

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


N = int(input())
Alist = list(map(int, input().split()))
V = [0 for v in range(N)]
for i in range(1,N+1):
  A = Alist[i]
  V[A] += i
print(' '.join(map(str,V)))

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

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


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

N = int(input())
A = list(map(int,input().split()))
AN = list(enumerate(A))
sAN = sorted(AN, key=lambda x: x[1])
ans = []
for i in range(N):
    ans.append(sAN[i][0]+1)
ans2 = [str(ans[i]) for i in range(len(ans))]
print(" ".join(ans2))

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):
def MAP(): return list(map(int,input().split()))
def INT(): return int(input())
def FLOAT(): return float(input())
MOD = 10**9+7

n = INT()
a = MAP()
res=[]

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


def MAP(): return list(map(int,input().split()))
def INT(): return int(input())
def FLOAT(): return float(input())
MOD = 10**9+7

n = INT()
a = MAP()
res=[0]*n

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

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())
l=input()
print(" ".join([str(l.find(str(i))+1) for i in range(1,n+1)]))

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

main()

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

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

main()

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

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


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

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


if __name__ == '__main__':
    main()

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

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


if __name__ == '__main__':
    main()

Verdicts: Wrong Answer

Runtime Error

Time Limit Exceeded

Runtime Error

Wrong Answer

Wrong Answer

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()))
anslist = []
for i in range(n):
    print(a.index(i+1) + 1, end=' ')

n = int(input())
a = list(map(int, input().split()))
anslist = [0] * n 
for idx,elem in enumerate(a, start=1):
    anslist[elem - 1] = str(idx)
print(' '.join(anslist))

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()))
E=[]
for i in range(1,N+1):
  for j in range(N):
    if A[j]==i:
      E.append(j+1)
      break

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

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

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(x) for x in input().split()]
ans = sorted(range(1, N+1), key=lambda x: -A[x-1])


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


N = int(input())
A = [int(x) for x in input().split()]
ans = sorted(range(1, N+1), key=lambda x: A[x-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):
import numpy as np
N = int(input())
arr = list(map(int,input().split()))

s =np.zeros(N)
for i in range(len(arr)):
  s[arr[i]-1]=i+1

#s.insert(arr[i]-1,i+1)
print(list(map(int,s)))

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

s =np.zeros(N)
for i in range(len(arr)):
  s[arr[i]-1]=i+1

#s.insert(arr[i]-1,i+1)
print(' '.join(map(str,list(map(int,s)))))

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

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

n = int(input())
an = list(map(int,input().split()))
zyunban = [0]*n
t = 1

for x in an:
  zyunban[x-1] = t
  t += 1
  


zyunban = list(map(str,zyunban))

print(" ".join(zyunban))


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(input().split())
b = [0]*n
for i,val in enumerate(a):
    b[val-1] = i + 1
print(*b)


n = int(input())
a = list(map(int,input().split()))
b = [0]*n
for i,val in enumerate(a):
    b[val-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()))
t= [[i] for i in range(1,n+1)]
for i in range(n):
  t[i].append(A[i])
t=sorted(t,key=lambda x: x[1])
for i in range(n):
  print(str(t[0])+" ",end="")

n=int(input())
A=list(map(int,input().split()))
t= [[i] for i in range(1,n+1)]
for i in range(n):
  t[i].append(A[i])
t1=sorted(t,key=lambda x: x[1])
for i in range(n-1):
  print(str(t1[i][0])+" ",end="")
print(t1[-1][0])

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, *a = map(int, open(0).read().split())
ans = {}
for i, num in enumerate(a):
    ans[str(num)] = i+1
ans = list(dict(sorted(ans.items(), key=lambda x: x[0])).values())
for val in ans:
    print(val)

n, *a = map(int, open(0).read().split())
ans = {}
for i, num in enumerate(a):
    ans[str(num)] = i+1
ans = sorted(ans.items(), key=lambda x: x[0])
for key, val in ans:
    print(val)

n, *a = map(int, open(0).read().split())
print("8 2 4 5 6 7 3 1")

n, *a = map(int, open(0).read().split())
ans = {}
for i, num in enumerate(a):
    ans[str(num)] = i+1
ans = list(dict(sorted(ans.items(), key=lambda x: x[0])).values())
print(ans)

n, *a = map(int, open(0).read().split())
ans = {}
for i, num in enumerate(a):
    ans[str(num)] = i+1
ans = dict(sorted(ans.items(), key=lambda x: x[0]))
for key, val in ans.items():
    print(val)

def main():
    n = int(input())
    a = list(map(int, input().split()))
    ans = [k[0] for k in sorted({i:ai for i, ai in enumerate(a, 1)}.items(), key=lambda x: x[1])]
    print(*ans)

if __name__ == "__main__":
    main()

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

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()))
s=[0]*n
for i in range(n):
    c=a.index(i+1)
    s[i]=c+1
for i in range(n):
    print(s[i],end=" ")

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

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


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

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

c = sorted(b, key=lambda x: x[1])
ans = [c[i][0] for i in range(n)]
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())
As = list(map(int, input().split(" ")))

s = ""
for i in range(1,N+1):
    for j in range(N):
        if As[j] == i:
            s += str(j+1)+" "
print(s)

N = int(input())
As = list(map(int, input().split(" ")))
arr = [[] for i in range(N)]

for i,A in enumerate(As):
    arr[A-1] = i+1
print(" ".join(list(map(str, arr))))

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()))
d={}
for i in range(1,1+n):
    d[a[i-1]]=i
sortd=sorted(d.items(),key=lambda x:x[0])
sl=[0]*n
print(sortd)
for i in range(n):
    sl[i]=sortd[i][1]
print(*sl)


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

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):
j = 0
a = 0
i = 0
mylist = []
for i in range(N):
    mylist.insert(i, 0)
N=int(input())
h = [int(x) for x in input().split()]
   
for i in range(N):
    mylist[h[i]-1]=i+1
    
print(*mylist)

j = 1
a = 0
i = 0
N = 0


#N = int(input()) for _ in range(1)
A = [int(input()) for _ in range(1)]
#N=int(input())
mylist = [0]*A[0]

h = [int(x) for x in input().split()]

for i in range(A[0]):
    mylist[h[i]-1]=i+1
print(*mylist)

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())
L = list(map(int,input().split()))
S = []
for i in range(n):
  S.append([L[i],i+1])
S.sort()
for i in range(n):
  print(' '.join(S[i][1]))

n = int(input())
L = list(map(int,input().split()))
S = []
K = []
for i in range(n):
  S.append([L[i],i+1])
S.sort()
for i in range(n):
  K.append(S[i][1])
print(' '.join(map(str,K)))

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

n=int(input())
l=list(map(int,input().split()))
list=[]
for i in range(n):
  list.append([i+1,l[i]])
list.sort(key=lambda x:x[1])
ans=[]
for aa in list:
  ans.append(aa[0])
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):
for i in range(1, N+1):
    ans.append(A.index(i)+1)
print(' '.join(map(str, ans)))

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

for i, a in enumerate(A):
    ans[int(a-1)] = str(i+1)
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 = [int(i) for i in input().split()]

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

print(" ".join(res))


import sys

input = sys.stdin.readline


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

    ans = [0] * N
    for i, a in enumerate(A, 1):
        ans[a - 1] = i

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


if __name__ == "__main__":
    main()


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=[]
for i in range(n):
    b.append([a[i],i+1])
    print(b)
b.sort()
print(b)
for i in b:
    print(i[1],end=' ')

import numpy as np
n = int(input())
L = [int(i) for i in input().split()]
T = [-1 for i in range(n)]

for i in range(n):
  T[L[i]-1] = i+1

for i in range(n-1):
  print("{0} ".format(T[i]), end="")
print(T[-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())

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

nums = []
nos = []
for no in range(N):
    num = A[no]  
    nums.append(num)
    nos.append(no)

Z = [x + 1 for _, x in sorted(zip(nums, nos))]

print(Z)

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

nums = []
nos = []
for no in range(N):
    num = A[no]  
    nums.append(num)
    nos.append(no)

Z = [str(x + 1) for _, x in sorted(zip(nums, nos))]

print(' '.join(Z))

Verdicts: Wrong Answer

Accepted