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

ans = [0]*N
for i in range(Nh):
    ans[S[i]-1] = i+1
print(" ".join(map(str, ans)))

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

ans = [0]*N
for i in range(N):
    ans[S[i]-1] = 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):
import sys
N = int(input())
A = list(map(int, sys.stdin.readline().strip().split()))

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

import sys
N = int(input())
A = list(map(int, sys.stdin.readline().strip().split()))


school = [0] * N
j = 1
for i in A:
    school[i - 1] = j
    j += 1

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


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

print(' '.join(ans))

import sys
n= int(input())
an = list(map(int, sys.stdin.readline().split()))
ans = [0]*n
for i in range(n):
    ans[an[i]-1] = i+1

print(' '.join(ans))

import sys
n= int(input())
an = list(map(int, sys.stdin.readline().split()))
ans = ['']*n
for i in range(n):
    ans[an[i]-1] = str(i+1)

print(' '.join(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):
import numpy as np
n = int(input())
a = list(map(int, input().split()))
ans_lis = np.ones(len(a))
ans_lis = np.array(ans_lis)
for i in range(len(a)):
    ans_lis[i] += a.index(i + 1)
print(*ans_lis)

import numpy as np
n = int(input())
a = list(map(int, input().split()))
ans_lis = np.zeros(len(a))
ans_lis = np.array(ans_lis, dtype=int)
for i in range(len(a)):
    ans_lis[i] = int(a.index(i + 1) + 1)
print(ans_lis)


import numpy as np
n = int(input())
a = list(map(int, input().split()))
ans_lis = np.zeros(len(a))
for i in range(len(a)):
    ans_lis[i] = a.index(i + 1) + 1
print(np.array(ans_lis))


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

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

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

N = int(input())
A = list(map(int, input().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):
if __name__ == '__main__':
    N = int(input())
    order_list = list(map(int, input().split()))

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

if __name__ == '__main__':
    N = int(input())
    order_list = list(map(int, input().split()))
    present_num_list = list(range(1, (N+1)))

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

if __name__ == '__main__':
    N = int(input())
    order_list = list(map(int, input().split()))
    present_list = list(range(1, N+1))
    temp = zip(order_list, present_list)
    temp = sorted(temp)
    order_list, present_list = zip(*temp)
    print(' '.join(map(str,present_list)))


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=[]
for j in range(N):
  L.append(0)
x=1
for i in A:
  L[i-1]=x
  x=x+1
print(L)

N=int(input())
A=list(map(int,input().split()))
L=[]
for j in range(N):
  L.append(0)
x=1
for i in A:
  L[i-1]=x
  x=x+1
print(' '.join(map(str, 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 = [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)

n = int(input())
a = 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

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

result = []

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

result.sort()
print(result *)

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

result = []

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

result.sort()
li = []

for i in range(N):
    li.append(result[i][1])

print(*li)

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

ans = [int(0) for i in range(n)]

for j in range(n): ##01234
  ans[toko[j]-1] = j + 1
  
print(ans)


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

ans = [int(0) for i in range(n)]

for j in range(n): ##01234
  ans[toko[j]-1] = j + 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())
A = list(map(int, input().split()))

print(np.argsort(A)+1)

import numpy as np

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

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

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

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


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):
_ = input()
s = map(int,input().split())
ans = ""
di = {}
for ind,num in enumerate(s):
    di[num] = ind+1
for key,value in sorted(di.items(),key=lambda x:x[0]):
    ans += str(value)
print(ans)


_ = input()
s = map(int,input().split())
ans = []
di = {}
for ind,num in enumerate(s):
    di[num] = ind+1
for key,value in sorted(di.items(),key=lambda x:x[0]):
    ans.append(str(value))
print(" ".join(ans))


Verdicts: Wrong Answer

Accepted
Problem: Takahashi is a teacher responsible for a class of N students.  The students are given distinct student numbers from 1 to N.  Today, all the students entered the classroom at different times.  According to Takahashi's record, there were A_i students in the classroom when student number i entered the classroom (including student number i).  From these records, reconstruct the order in which the students entered the classroom.

Submission attempts (in order):
N = int(input())
A = list(map(int, input().split()))
dic = {}
for i in range(N):
    dic[i] = A[i]
dic = sorted(dic.items(), key=lambda x: x[1])
dic = list(zip(*dic))
print([dic[0][i] + 1 for i in range(N)])


N = int(input())
A = list(map(int, input().split()))
nA = []
for i in range(N):
    nA.append([A[i], i + 1])
nA.sort(key=lambda x: x[0])
ans = list(map(list, zip(*nA)))[1]
ans = list(map(str, ans))
print(' '.join(ans))


Verdicts: Wrong Answer

Accepted
Problem: Takahashi is a teacher responsible for a class of N students.  The students are given distinct student numbers from 1 to N.  Today, all the students entered the classroom at different times.  According to Takahashi's record, there were A_i students in the classroom when student number i entered the classroom (including student number i).  From these records, reconstruct the order in which the students entered the classroom.

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

N = int(input())
li = list(map(int, input().split()))
ans = [0] * N
num = 1
for i in li:
    ans[i - 1] = num
    num += 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):
# coding: utf-8


def solve(args: list) -> str:
    N = int(args[0])
    A = list(map(int, args[1].split()))
    a = [(i, A[i]) for i in range(N)]
    sorted(a, key=lambda t: t[1])
    return str(' '.join(map(str, map(lambda t: t[0], a))))


if __name__ == "__main__":
    print(solve([input() for _ in range(2)]))


# coding: utf-8


def solve(args: list) -> str:
    N = int(args[0])
    A = list(map(int, args[1].split()))
    a = [(i+1, A[i]) for i in range(N)]
    ret = map(lambda t: t[0], sorted(a, key=lambda t: t[1]))
    return str(' '.join(map(str, ret)))


if __name__ == "__main__":
    print(solve([input() for _ in range(2)]))


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

n=int(input())
li = list(input().split())
ans=[]
a=""
for i in range(1,n+1):
  print(li.index(str(i))+1,end=" ")

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

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

Verdicts: Time Limit Exceeded

Time Limit Exceeded

Time Limit Exceeded

Accepted
Problem: Takahashi is a teacher responsible for a class of N students.  The students are given distinct student numbers from 1 to N.  Today, all the students entered the classroom at different times.  According to Takahashi's record, there were A_i students in the classroom when student number i entered the classroom (including student number i).  From these records, reconstruct the order in which the students entered the classroom.

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

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


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

out = sorted(range(1, len(a)+1 ), key=lambda i: a[i-1])
print(" ".join(map(str, out)))


Verdicts: Time Limit Exceeded

Accepted
Problem: Takahashi is a teacher responsible for a class of N students.  The students are given distinct student numbers from 1 to N.  Today, all the students entered the classroom at different times.  According to Takahashi's record, there were A_i students in the classroom when student number i entered the classroom (including student number i).  From these records, reconstruct the order in which the students entered the classroom.

Submission attempts (in order):
n=int(input())
a=[int(i)for i in input().split()]
res=[str(a[i]) for i in range(n)]
print(" ".join(res))

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

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

out = [[] for _ in range(N)]

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

print(out)


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

out = [[] for _ in range(N)]

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

print(" ".join( repr(e) for e in out ) )


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())
K = list(map(int,input().split()))
M = dict(zip(range(1,N+1),K))
M = sorted(M.items(), key = lambda x:x[1])
newM = []
for i in M:
  newM.append(i[0])
print(newM)

N = int(input())
K = list(map(int,input().split()))
M = dict(zip(range(1,N+1),K))
M = sorted(M.items(), key = lambda x:x[1])
newM = []
for i in M:
  newM.append(i[0])
print(+newM)

N = int(input())
K = list(map(int,input().split()))
M = dict(zip(range(1,N+1),K))
M = sorted(M.items(), key = lambda x:x[1])
newM = []
for i in M:
  newM.append(i[0])
print(*newM)

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(input().split())
cnt = 0
for i in range(1,N+1):
    print(A.index(str(i))+1, end=' ')

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

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


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


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


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

dic = {a.index(i)+1: i for i in a}
s_dic = sorted(dic.items(), key=lambda x: x[1])

ans = ''
for i in range(n):
    ans += str(s_dic[i][0]) + ' '

print(ans)


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


Verdicts: Time Limit Exceeded

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 = 1
X = []
for i in range(N):
  for j in range(i):
    if A[i] == ans:
      ans += 1
      X.append(i+1)
print(''.join(map(str,X)))


N=int(input())
A=list(map(int,input().split()))
ans = 1
X = []
for i in range(N):
  if A[i] == ans:
    ans += 1
    X.append(i+1)
print(''.join(map(str,X)))

N=int(input())
A=list(map(int,input().split()))
ans = 1
X = []
for i in range(N):
  if A[i] == ans:
    ans += 1
    X.append(i+1)
L=' '.join(X)
print(X)


N=int(input())
A=list(map(int,input().split()))
ans = 1
X = []
for i in range(N):
  if A[i] == ans:
    ans += 1
    X.append(i+1)
for j in X:
    print(j,end='')


N=int(input())
A=list(map(int,input().split()))
X = [0 for _ in range(N)]

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

L = " ".join([str(i) for i in X])
print(L)

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

s = [0]*n
for i,a_n in enumerate(a):
    s[a_n-1] = i+1

print(s)

n = int(input())

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

s = [0]*n
for i,a_n in enumerate(a):
    s[a_n-1] = i+1

p=""
for b in s:
    p += str(b) + " "

print(str(p[:-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())
import heapq
student = list(map(int,input().split()))
a = []
heapq.heapify(a)
for i in range(N):
    heapq.heappush(a,student.index(i+1) + 1)
print(a)

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

Verdicts: Wrong Answer

Accepted
Problem: Takahashi is a teacher responsible for a class of N students.  The students are given distinct student numbers from 1 to N.  Today, all the students entered the classroom at different times.  According to Takahashi's record, there were A_i students in the classroom when student number i entered the classroom (including student number i).  From these records, reconstruct the order in which the students entered the classroom.

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

p = [0]*n
t = 1
for i in a:
  p[i-1] = t
  t += 1
print(p)

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

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

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 = []
rev = [0]*N 

for x in input().split():
    A.append(int(x))

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

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

N = int(input())
A = []
rev = [0]*N 

i = 0
for x in input().split():
    i += 1
    A.append(int(x))
    students.append(int(i))

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

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

N = int(input())
A = []
rev = [0]*N 

for x in input().split():
    A.append(int(x))

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

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

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 = [int(i) for i in input().split()]
values = [str(i+1) for i in range(N)]
dic = {key: val for key, val in zip(A, values)}
dic_s = deque(sorted(dic.items()))
s =[]
for i in range(N):
    s.append(dic_s[i][1])

ans = ' '.join(s)
print(ans)

from collections import deque
N = int(input())
A = [int(i) for i in input().split()]
values = [str(i+1) for i in range(N)]
dic = {key: val for key, val in zip(A, values)}
dic_s = deque(sorted(dic.items()))
s =deque()
for i in range(N):
    s.append(dic_s[i][1])

ans = ' '.join(list(s))
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):
n = int(input())
array = list(map(int, input().strip().split(" ")))
ans = [0]*n

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



print(" ".join(ans))


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

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



print(" ".join(ans))


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

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



print(" ".join(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())
A = [int(i) for i in input().split()]
li = ["" for i in range(N)]
for i in range(N):
    li[A[i]-1] = str(i)
print(" ".join(li))

N = int(input())
A = [int(i) for i in input().split()]
li = ["" for i in range(N)]
for i in range(N):
    li[A[i]-1] = str(i+1)
print(" ".join(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):
input1 = int(input())
attend_list = list(map(int, input().split()))
order_list = ([None for _ in range(input1)])

for i in range(input1):
    order_list[attend_list[i] - 1] = i + 1

print(order_list)

input1 = int(input())
attend_list = list(map(int, input().split()))
order_list = ([None for _ in range(input1)])

for i in range(input1):
    order_list[attend_list[i] - 1] = i + 1

print(*order_list)

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

lst = []*n
for i in range(1,n+1):
  lst[al[i-1]-1] = i
print(*lst)
  


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

lst = []*(n+1)
for i in range(1,n+1):
  lst[al[i-1]] = i
print(*lst)
  

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

lst = [[] for _ in range(n)]
for i in range(1,n+1):
  lst[al[i-1]-1] = i
print(*lst)
  


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

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

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

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

print(attend_list)

#sort
N = int(input())
A = list(map(int, input().split()))
attend_list = []

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

print(attend_list)

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

print(*attend_list)

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: Takahashi is a teacher responsible for a class of N students.  The students are given distinct student numbers from 1 to N.  Today, all the students entered the classroom at different times.  According to Takahashi's record, there were A_i students in the classroom when student number i entered the classroom (including student number i).  From these records, reconstruct the order in which the students entered the classroom.

Submission attempts (in order):
N = int(input())
A = [int(x) for x in input().split()]
a = { x+1 : A[x] for x in range(len(A))}
ans = sorted(a.items(), key=lambda x:x[1])
dict_ans = dict(ans)
ans_val = dict_ans.keys()
print(list(ans_val))

import numpy as np
N=int(input())
A=list(map(int,input().split()))
 
B=np.argsort(A)+1
 
print(' '.join(map(str,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):
input()
li=list(map(int,input().split()))
enu_li=[[i,value] for i,value in enumerate(li,1)]

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

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

print(result)

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

mod_li=[[i,num] for i,num in enumerate(li,1)]
result_li=sorted(mod_li, key=lambda x: x[1])

result=[str(num[0]) for num in result_li]
print(" ".join(result))

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):
    j=a[i]
    ans[j-1]=i+1
print(ans)

n=int(input())
a=list(map(int,input().split()))
ans=[0]*n
for i in range(n):
    j=a[i]
    ans[j-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):
n = int(input())
a_list = list(map(int, input().split()))
tr_list = [i+1 for i in range(n)]
ans_list =[]
for i in range(n):
    ans_list.append(a_list.index(tr_list[i])+1)
print(ans_list)

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

Verdicts: Wrong Answer

Accepted
Problem: Takahashi is a teacher responsible for a class of N students.  The students are given distinct student numbers from 1 to N.  Today, all the students entered the classroom at different times.  According to Takahashi's record, there were A_i students in the classroom when student number i entered the classroom (including student number i).  From these records, reconstruct the order in which the students entered the classroom.

Submission attempts (in order):
N = int(input())
A = list(map(int, input().split(' ')))
A_indexed = [(a, index+1) for index, a in enumerate(A)]
A_indexed.sort(key=lambda a_indexed : a_indexed[1])
print(' '.join('{}'.format(a_indexed[0]) for a_indexed in A_indexed))

N = int(input())
A = list(map(int, input().split(' ')))
A_indexed = [(a, index+1) for index, a in enumerate(A)]
A_indexed.sort(key=lambda a_indexed : a_indexed[0])
print(' '.join('{}'.format(a_indexed[1]) for a_indexed in A_indexed))

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

import numpy as np
' '.join(map(str, np.array(A).argsort() + 1))

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

import numpy as np
print(' '.join(map(str, np.array(A).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):
n = int(input())
a = list(map(int, input().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 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 = sorted(A)

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

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

Accepted
Problem: Takahashi is a teacher responsible for a class of N students.  The students are given distinct student numbers from 1 to N.  Today, all the students entered the classroom at different times.  According to Takahashi's record, there were A_i students in the classroom when student number i entered the classroom (including student number i).  From these records, reconstruct the order in which the students entered the classroom.

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

n = int(input())
A = list(enumerate(list(map(int, input().split()))))
A.sort(key=lambda x:x[1])
ans = []
for i in A: ans.append(str(i[0]+1))
print(" ".join(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):
from heapq import heapify, heappush, heappop

def main():
    n = int(input())
    a = [int(x) for x in input().split()]
    h = a.copy()
    heapify(h)
    for _ in range(n):
        h_a = heappop(h)
        print(a.index(h_a)+1, end=' ')

if __name__ == '__main__':
    main()

def main():
    n = int(input())
    a = [int(x) for x in input().split()]
    a_s = sorted(a)
    
    for i in a_s:
        #ans.append(a.index(i)+1)
        print(a.index(i)+1, end=' ')
    #print(*ans)

if __name__ == '__main__':
    main()

import sys
from heapq import heapify, heappush, heappop
input = sys.stdin.readline

def main():
    n = int(input())
    a = [int(x) for x in input().split()]
    h = a.copy()
    heapify(h)
    for _ in range(n):
        h_a = heappop(h)
        print(a.index(h_a)+1, end=' ')

if __name__ == '__main__':
    main()

def main():
    n = int(input())
    a = [int(x) for x in input().split()]
    ans = [None] * n
    for idx, ea in enumerate(a):
        ans[ea-1] = idx+1
    print(*ans)
    
if __name__ == '__main__':
    main()

Verdicts: Time Limit Exceeded

Time Limit Exceeded

Time Limit Exceeded

Accepted
Problem: Takahashi is a teacher responsible for a class of N students.  The students are given distinct student numbers from 1 to N.  Today, all the students entered the classroom at different times.  According to Takahashi's record, there were A_i students in the classroom when student number i entered the classroom (including student number i).  From these records, reconstruct the order in which the students entered the classroom.

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

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

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

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=map(int, input().split())
B=[0]*N
C=''

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

for i in range(N):
    C+=str(B[i])+' '

print(C[0:-1])

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

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 = input().split()
dict_A = {}
j = 0
for i in A:
    dict_A[j] = i
    j += 1
print(dict_A)
attend_order = [k + 1 for k, v in sorted(dict_A.items(), key=lambda x: x[1])]
print(*attend_order, sep=" ")

N = int(input())
A = map(int, input().split())
dict_A = {}
j = 0
for i in A:
    dict_A[j] = i
    j += 1
#print(dict_A)
attend_order = [k + 1 for k, v in sorted(dict_A.items(), key=lambda x: x[1])]
print(*attend_order, sep=" ")

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()))
ans = dict()
for i in range(len(li)):
    ans[li[i]] = i + 1
ali = []
for j in sorted(ans.keys()):
    ali.append(ans[j])
print(ali)

N = int(input())
li = list(map(int, input().split()))
ans = dict()
for i in range(len(li)):
    ans[li[i]] = i + 1
ali = []
for j in sorted(ans.keys()):
    ali.append(ans[j])
print(*join(ali))

N = int(input())
li = list(map(int, input().split()))
ans = dict()
for i in range(len(li)):
    ans[li[i]] = i + 1
ali = []
for j in sorted(ans.keys()):
    ali.append(ans[j])
print(ali.split())



N = int(input())
li = list(map(int, input().split()))
ans = dict()
for i in range(len(li)):
    ans[li[i]] = i + 1
ali = []
for j in sorted(ans.keys()):
    ali.append(ans[j])
print(*ali)

Verdicts: 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()))
B = [0 for i in range(N)]
for j in range(N):
  B[A[j]] = j+1
print(' '.join(map(str, B)))

N = int(input())
A = list(map(int, input().split()))
B = [0 for i in range(N)]
for j in range(N):
  B[A[j]-1] = j+1
print(' '.join(map(str, 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()))

for x in range(1,n+1):
    for y in range(n):
        if x == a[y]:
            print(y+1, end=" ")

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: Time Limit Exceeded

Accepted