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

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

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

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

ans = [0] * n
for i in range(1, n+1):
    ans[a[i] - 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())
H = input().split()
h = []
cnt = 0
for i in range(N):
  h.append(int(H[i]))
  
for i in range(N):
  for j in range(N-1, i, -1):
    if h[i] > h[j] :
      h[i], h[j] = h[j], h[i]
      
str1 = map(str, h)
str1 = " ".join(str1)
print(str1)

N = int(input())
H = input().split()
h = []
cnt = 0
for i in range(N):
  h.append(int(H[i]))
  
h.sort()
str1 = map(str, h)
str1 = " ".join(str1)
print(str1)

N = int(input())
H = input().split()
h = []
cnt = 0
for i in range(N):
  h.append(int(H[i]))

h1 = [0 for i in range(N)]
for i in range(N):
  h1[h[i] - 1] = i+1
  
      
str1 = map(str, h1)
str1 = " ".join(str1)
print(str1)

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[i] = a[a[i]-1]

print(b)

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

b = ' '.join(b)
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())
ans=1
s=list(map(int,input().split()))
for i in range(1,n+1):
    print(s.index(i)+1,end=" ")

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

Verdicts: Time Limit Exceeded

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

Submission attempts (in order):
N = int(input())
A = input().split()
import numpy as np
A = [int(a) for a in A]
s = ""
toukou = list(np.argsort(np.array(A)))
print(A)
print(toukou)
for i in range(N):
    num = toukou[i]+1
    s += " "+str(num)
print(s[1:])

N = int(input())
A = input().split()
import numpy as np
Toukou = [i+1 for i in list(np.argsort(np.array(A)))]
print(Toukou)

N = int(input())
A = input().split()
import numpy as np
A = [int(a) for a in A]
s = ""
toukou = list(np.argsort(np.array(A)))
for i in range(N):
    num = int(toukou[i])+1
    if(s == ""):
        s = str(num)
    else:
        s += " "+str(num)
print(s)

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

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

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

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

Verdicts: Time Limit Exceeded

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

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

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

S = ""
for i in range(N):
  S += str(A.index(i+1))
  if i != N:
    S += " "
  
print(S)

N = int(input())
A = []*N
A[:] = map(int,input().split())

S = ""
for i in range(N):
  S += str(A.index(i+1)+1)
  if i != N:
    S += " "
  
print(S)

N = int(input())
A = []*N
A[:] = map(int,input().split())

S = [' ']*N

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

print(" ".join(S))

Verdicts: Wrong Answer

Time Limit Exceeded

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

Submission attempts (in order):
n=int(input())
a=input()
A=a.split()
B=a.split()
C=[]
for i in range(len(A)):
    C.append(0)
print(C)
for j in range(len(A)):
    A[j]=int(A[j])
for k in range(len(A)):
    C[A[k]-1]=k+1
for l in range(len(C)):
    C[l]=str(C[l])
s = ' '.join(C)
print(s)

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

n=int(input())
a=input()
A=a.split()
B=a.split()
C=[]
for i in range(len(A)):
    C.append(0)
for j in range(len(A)):
    A[j]=int(A[j])
for k in range(len(A)):
    C[A[k]-1]=k+1
for l in range(len(C)):
    C[l]=str(C[l])
s = ' '.join(C)
print(s)

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

print(*np.argsort(A)+1)

import numpy as np

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

print(np.argsort(A)+1)

import numpy as np

N = int(input())
A = list(map(int, input().split()))
tmp = np.argsort(A)+1
print(*tmp)

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):
num=int(input())
line =list(map(int,input().split())) 
line2 =[0]*num                          
for i in range(num):
  line2[line[i]-1]=i+1
print(" ".join(map(str,line)))

num = int(input())
line = input().split()
line2 = [0]* num


for student in line:
  line2[int(student)-1] += line.index(student) + 1

for student in line2:
  print(student, end = " ")

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

Verdicts: Wrong Answer

Time Limit Exceeded

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

Submission attempts (in order):
n = int(input())
a = list(int(i) for i in input().split())
c = []
l = sorted(range(len(a)), key=lambda k: a[k])
for i in range(n):
    b = l[i] + 1
    c.append(b)
print(c)

n = int(input())
a = list(int(i) for i in input().split())
c = list()
l = sorted(range(len(a)), key=lambda k: a[k])
for i in range(n):
    b = l[i] + 1
    c.append(b)
print(" ".join( repr(e) for e in c ))

Verdicts: Wrong Answer

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

Submission attempts (in order):
import unittest


class TestC(unittest.TestCase):
    def test_1(self):
        self.assertEqual(think([2, 3, 1]), [3, 1, 2])

    def test_2(self):
        self.assertEqual(think([1, 2, 3, 4, 5]), [1, 2, 3, 4, 5])

    def test_3(self):
        self.assertEqual(think([8, 2, 7, 3, 4, 5, 6, 1]), [8, 2, 4, 5, 6, 7, 3, 1])


def solve():
    a = read()
    result = solve(a)
    write(result)


def read():
    n = read_int(1)[0]
    return read_int(n)


def read_int(n):
    return list(map(lambda x: int(x), read_line().split(' ')))[:n]


def read_float(n):
    return list(map(lambda x: float(x), read_line().split(' ')))[:n]


def read_line(n=0):
    if n == 0:
        return input().rstrip()
    else:
        return input().rstrip()[:n]


def think(a):
    list_of_index_and_a = []
    for index, e in enumerate(a):
        list_of_index_and_a.append((index + 1, e))

    list_of_index_and_a.sort(key=lambda x: x[1])
    return [x[0] for x in list_of_index_and_a]


def write(result):
    print(result)


if __name__ == '__main__':
    # unittest.main()
    solve()

import unittest


class TestC(unittest.TestCase):
    def test_1(self):
        self.assertEqual(think([2, 3, 1]), [3, 1, 2])

    def test_2(self):
        self.assertEqual(think([1, 2, 3, 4, 5]), [1, 2, 3, 4, 5])

    def test_3(self):
        self.assertEqual(think([8, 2, 7, 3, 4, 5, 6, 1]), [8, 2, 4, 5, 6, 7, 3, 1])


def solve():
    a = read()
    result = think(a)
    write(result)


def read():
    n = read_int(1)[0]
    return read_int(n)


def read_int(n):
    return list(map(lambda x: int(x), read_line().split(' ')))[:n]


def read_float(n):
    return list(map(lambda x: float(x), read_line().split(' ')))[:n]


def read_line(n=0):
    if n == 0:
        return input().rstrip()
    else:
        return input().rstrip()[:n]


def think(a):
    list_of_index_and_a = []
    for index, e in enumerate(a):
        list_of_index_and_a.append((index + 1, e))

    list_of_index_and_a.sort(key=lambda x: x[1])
    return [x[0] for x in list_of_index_and_a]


def write(result):
    print(' '.join(list(map(lambda x: str(x), result))))


if __name__ == '__main__':
    # unittest.main()
    solve()

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=sorted(list(map(int, input().split())))
arr=[None]*N
for a in range(N):
  arr[A[a]-1]=a+1
print(*arr)


N=int(input())
A=sorted(list(map(int, input().split())))
arr=[None]*N
for a in range(N):
  arr[A[a]-1]=a+1
print(arr)


N=int(input())
A=list(map(int, input().split()))
arr=[None]*N
for a in range(N):
  arr[A[a]-1]=a+1
print(*arr)


Verdicts: Wrong Answer

Wrong Answer

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

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

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

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

Verdicts: Runtime Error

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

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

ans = [0] * N

for i in range(N):
    num = A.index(i+1) + 1
    ans[i] = str(num) + " "

s = "".join(ans)

print(s)

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

ans = [0] * N

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

n=int(input())
s=list(map(int,input().split()))
d={}
for x in range(len(s)):
    d[x]=s[x]
d=sorted(d.items(),key=lambda e: e[1])
p=list(map(str,[i+1 for i,j in d]))
print(" ".join(p))

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

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

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):
num = int(input())
lines = input().split(" ")
numline = [int(i) for i in lines]
numbers = [i+1 for i in range(num)]
dic = dict(zip(numbers, numline))
dic2 = sorted(dic.items(), key=lambda x:x[0])
arr = []

for i in range(num):
  arr.append(str(dic2[i][1]))
  
print(" ".join(arr))

num = int(input())
lines = input().split(" ")
numline = [int(i) for i in lines]
numbers = [i+1 for i in range(num)]
dic = dict(zip(numbers, numline))

dic2 = sorted(dic.items(), key=lambda x:x[1])
arr = []

for i in range(num):
  arr.append(str(dic2[i][0]))
  
print(" ".join(arr))

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 = []

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

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

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

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

for j in range(n):
    b[a[j]-1] = str(j+1)
    
print(' '.join(c[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 = int(input())
l = list(map(int,input().split()))
for i in range(n):
    ans = l.index(i+1)
    print(ans + 1,end=" ")

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

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

B = [0 for _ in range(N)]
for i, a in enumerate(A):
    B[a - 1] = str(i + 1)

print(' '.join(B))

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

B = [0 for _ in range(N)]
for i, a in enumerate(A):
    B[a - 1] = str(i + 1)

print(' '.join(B))

Verdicts: Runtime Error

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

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

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

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

x = [0 for i in range(len(a))]

for i,v in enumerate(a):
	x[v-1] = i+1

print(x)

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

for i in range(1,len(A)+1):
  R += str(A.index(i)+1) + ' '

print(R)

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

for i in range(1,len(A+1)):
  R += str(A.index(i)+1) + ' '

print(R)

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

for i in range(len(A)):
  R += str(A.index(i+1)+1) + ' '

print(R)

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

x = [0] * len(a)

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

print(' '.join(x))

Verdicts: Time Limit Exceeded

Wrong Answer

Time Limit Exceeded

Runtime Error

Time Limit Exceeded

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

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

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

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

Verdicts: Wrong Answer

Wrong Answer

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

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

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

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

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

Verdicts: Wrong Answer

Time Limit Exceeded

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

Submission attempts (in order):
N = int(input())
A = list(map(int, input().split()))
ans = [0] * N
res = ''

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

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

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

ans = [0] * N

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

print(ans)

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

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

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

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(list, input().split()))
for i in range(N):
    A[i].append(i + 1)
A = sorted(A, key = lambda x: x[0])
ans = ""
for a in A:
    ans += str(a[1]) + " "
print(ans)


N = int(input())
A = list(map(int, input().split()))
B = []
for i in range(N):
    B.append([A[i]])
    B[i].append(i + 1)  
B = sorted(B)  
ans = []
for ai in range(N):
    ans.append(B[ai][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()))

numlist = [n+1 for n in range(N)]
atlist = [[x,y] for x, y in zip(A, numlist)]

sortlist = sorted(atlist)
print([x[1] for x in sortlist])

N = int(input())
A = list(map(int, input().split()))
numlist = [n+1 for n in range(N)]
atlist = [[x,y] for x, y in zip(A, numlist)]

sortlist = sorted(atlist)
print(' '.join(map(str, [x[1] for x in sortlist])))

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=list(range(1,int(input())+1))
a=list(map(int,input().split()))
na=[list(x) for x in zip(*sorted(zip(a, n)))]
print(na[1])

n=list(range(1,int(input())+1))
a=list(map(int,input().split()))
na=[list(x) for x in zip(*sorted(zip(a, n)))]
asdf=""
for i in na[1]:
  asdf+=str(i)+" "
print(asdf[:-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()))
B = [0] * (N +1)

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

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

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

print(*B[1:])

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 calculate(n, arr):
    result = [0] * len(arr)

    for index, value in enumerate(arr):
        result[value - 1] = index + 1

    return result


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

result = calculate(N, arr)
print(result)


def calculate(n, arr):
    result = [0] * len(arr)

    for index, value in enumerate(arr):
        result[value - 1] = str(index + 1)

    return result


N = int(input())
S = input().split(' ')
arr = list(map(int, list(S)))
result = calculate(N, arr)


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())
attends = list(map(int, input().split()))
for x in range(1, n + 1):
    print(attends.index(x) + 1)

n = int(input())
attends = [int(x) for x in input().split()]
for x in range(1, n + 1):
    print(attends.index(x) + 1)


n = int(input())
attends = dict(enumerate(list(map(int, input().split())), start=1))
attends_sorted = sorted(attends.items(), key=lambda x: x[1])
arr = [x[0] for x in attends_sorted]
print(*arr)


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

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

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

ans = list(range(n))
for i in range(n):
    ans[a[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):
N = int(input())
lists = input().split()
#print(lists)
ans = ''
for n in range(1,N+1):
    a = lists.index(str(n))+1
    #print(a)
    ans = ans + str(a) + " "
print(ans)    

N = int(input())
lists = input().split()
#print(lists)
ans = ''
for n in range(1,N+1):
    a = lists.index(str(n))+1
    #print(a)
    ans += str(a) + " "
print(ans)    

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

Verdicts: Time Limit Exceeded

Time Limit Exceeded

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

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


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


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

shusseki_jun=[' ' for _ in range(N)]
for i in range(N):
    ind = A[i]
    shusseki_jun[int(ind)-1] = str(i+1)

print(' '.join(shusseki_jun))


Verdicts: Wrong Answer

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

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


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

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

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

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

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

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

Verdicts: Runtime Error

Runtime Error

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

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

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

print(l)
l=list(sorted(l))
print(l)

ll=[]

for i in range(N):
    ll.append(l[i][1])

print(*ll)


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

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


l=list(sorted(l))

ll=[]

for i in range(N):
    ll.append(l[i][1])

print(*ll)


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

##C
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: 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 = input()
a = input().split()

result = []
for i in range(len(a)):
    temp = int(a[i]) - 1
    result.append(a[temp])

print(result)


n = input()
a = input().split()

result = []

for i in range(len(a)):
    temp = a.index(str(i + 1))
    print(temp)
    result.append(temp + 1)

print(result)


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

ans = [0] * n

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

print(*ans)


Verdicts: Wrong Answer

Wrong Answer

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

Submission attempts (in order):
from operator import itemgetter

N = int(input())
A = list(map(int,input().split()))
B =[]
for i,c in enumerate(A):
    B.append([i+1,c])

B = sorted(B, key=itemgetter(1))
print(B)
ans =[]
for i in range(N):
    ans.append(B[i][0])

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

from operator import itemgetter

N = int(input())
A = list(map(int,input().split()))
B =[]
for i,c in enumerate(A):
    B.append([i+1,c])

B = sorted(B, key=itemgetter(1))

ans =[]
for i in range(N):
    ans.append(B[i][0])

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

Verdicts: Wrong Answer

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

Submission attempts (in order):
n=int(input())
a=[0]*n
for i in range(n):
       a[int(input())]=i+1
print(a)

n=int(input())
a=[]
for i in range(n):
       a〔int(input())〕=i+ 1
print(a)

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


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

j=1
result=[]
while j<=N:
    for i in range(len(A)):
        if int(A[i])==j:
            result.append(i+1)
            j+=1

y=''
for x in result:
    y += str(x)

print(y)

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

j=1
result=[]
while j<=N:
    for i in range(len(A)):
        if int(A[i])==j:
            result.append(i+1)
            j+=1

print(result)

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

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] * N
for i,a in enumerate(A):
  ans[a-1] = 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: 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_copy = sorted(A)

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

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

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

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

B = [0 for i in range(N)]

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

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

B = [0 for i in range(N)]

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



Verdicts: Time Limit Exceeded

Time Limit Exceeded

Runtime Error

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

Submission attempts (in order):
n = int(input())
a = list(map(int, input().split()))
b = sorted(enumerate(a), key=lambda x:x[1])
c = [b[i][0]+1 for i in range(n)]
print(c)

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

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 = list(A)

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


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


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

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

n=int(input())
a=list(map(int,input().split()))
order=[0]*n
count=1
for num in a:
  order[num-1]=count
  count+=1
print(*order)

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


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

print(" ".join(a))

N = int(input())
o_lst=[]
lst = list(map(int, input().split()))
for i in lst:
    idx = lst.index(min(lst))
    print(idx+1,end=" ")
    #o_lst.append(idx+1)
    lst[idx]=N+1

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

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

print(" ".join(a))



Verdicts: Time Limit Exceeded

Wrong Answer

Time Limit Exceeded

Wrong Answer

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

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

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

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

Verdicts: Runtime Error

Time Limit Exceeded

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

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

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

Verdicts: Wrong Answer

Accepted