Problem:


Score : 300 points

Problem Statement

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.

Constraints

 1 \le N \le 10^5 

 1 \le A_i \le N 

 A_i \neq A_j  (i \neq j)

All values in input are integers.

Input

Input is given from Standard Input in the following format:

N
A_1 A_2 \ldots A_N

Output

Print the student numbers of the students in the order the students entered the classroom.

Sample Input 1

3
2 3 1

Sample Output 1

3 1 2

First, student number 3 entered the classroom.

Then, student number 1 entered the classroom.

Finally, student number 2 entered the classroom.

Sample Input 2

5
1 2 3 4 5

Sample Output 2

1 2 3 4 5

Sample Input 3

8
8 2 7 3 4 5 6 1

Sample Output 3

8 2 4 5 6 7 3 1



Sample input:
3
2 3 1


Sample output:
3 1 2

Submission status: Wrong Answer

Solution code:
import numpy as np
N = int(input())
A= list(map(int, input().split()))
A=np.array(A)
S=np.array(range(N))

con=np.vstack([A,S])

con=con[:, con[0,:].argsort()]
ans=con[1,]+1
ans=list(ans)
print(ans)

Submission status: Wrong Answer

Solution code:
import numpy as np
n=int(input())
a=np.sort(np.array(input().split(" "),dtype="int32"))
a_=list(a[:])
for i in a:
	print(a_.index(i)+1,end=" ")

Submission status: Wrong Answer

Solution code:
import numpy as np
n=int(input())
a=np.sort(np.array(input().split(" "),dtype="int64"))
a_=list(a[:])
for i in a:
	print(a_.index(i)+1,end=" ")

Submission status: Wrong Answer

Solution code:
import numpy as np
N = int(input())
A= list(map(int, input().split()))
A=np.array(A)
S=np.array(range(N))

con=np.vstack([A,S])

con=con[:, con[0,:].argsort()]

print(con[1,]+1)

Submission status: Wrong Answer

Solution code:
str = input()

n = int(str)
str2 = input().split()


d = {}

i = 0
for s in str2:
    d[s] = i + 1
    i += 1

d = sorted(d.items())


for v in d:
    print(v[1], end=' ')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

N = int(input())
num_list = list(map(int, input().split()))
order_list = sorted(range(len(num_list)), key=lambda k: num_list[k])
print('{}'.format(order_list))

Submission status: Wrong Answer

Solution code:
n = input()
a_list = input().split()
ret = []

for i, a in enumerate(a_list):
  ret.append((a, i))

del a_list
a_sorted = sorted(ret)
del ret
b = []

for _, i in a_sorted:
  b.append(str(i+1))

print(" ".join(b))

Submission status: Wrong Answer

Solution code:
N = int(input())
A = list(map(int,input().split()))
n = [i for i in range(1,N+1)]
ans =[]
jyuni = dict(zip(A,n))

for cnt in jyuni.values():
  ans.append(cnt)
  
print(ans)

Submission status: Wrong Answer

Solution code:
N=input()
QsList=list(map(int,input().split()))

tmpList=QsList[:]
tmpList.sort()

cnt=0
tmp=0
AnsList=QsList[:]
for i in QsList:
  tmp=int(QsList.index(i))+1
  a=int(tmpList.index(i))
  a=int(a)
  AnsList[a]=tmp
  
print(AnsList)

Submission status: Wrong Answer

Solution code:
N = int(input())
value = input().split(" ")
dic = {}
k = 0
for i in range(N):
    dic[value[i]] = i + 1
dic = sorted(dic.items())
for j in dic:
    k = k + 1
    if k < len(dic):
        print(j[1] , end =" ")
    else:
        print(j[1] , end ="")

Submission status: Wrong Answer

Solution code:
N=input()
QsList=list(map(int,input().split()))

tmpList=QsList[:]
tmpList.sort()

cnt=0
tmp=0
AnsList=QsList[:]
for i in QsList:
  tmp=int(QsList.index(i))+1
  a=int(tmpList.index(i))
  a=int(a)
  AnsList[a]=tmp

Submission status: Wrong Answer

Solution code:
# 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)]))

Submission status: Wrong Answer

Solution code:
number = int(input())
student  = input()

student_list = student.split()
student_id = []
for i in range (0,number):
    student_id.append(int(i+1))

stu_dic = dict(zip(student_list,student_id))

stu_dic = sorted(stu_dic.items())

for i in range(0,number):
    print(stu_dic[i][1],end =" ")

Submission status: Wrong Answer

Solution code:
n=int(input())
A=list(map(int,input().split()))
a=[]
for i in range(n):
  a.append([i+1,A[i]])
b=sorted(a,key=lambda x:-x[1])
lst=[]
for k in range(n):
  lst.append(b[k][0])
print(lst)

Submission status: Wrong Answer

Solution code:
N = int(input())
A = list(map(int, input().split()))
s = list(range(1, N+1))
c = [str(s[s.index(A.index(1)+1)])]
i = 1
l = []
for x in range(len(A)):
  if A[x] == i:
    tmp = s[s.index(A[x])]
    c.insert(i, str(tmp))
    i += 1
  elif A[x] == i+1:
    c.append(str(s[x]))
    i += 1
  else:
    l.append(s[x])
if len(l) >= 1:
  for y in range(len(l)):
    inse = A[s.index(l[y])]
    if str(l[y]) not in c:
      c.insert(inse-1, str(l[y]))
print(' '.join(c))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import numpy as np

N = int(input())
A_i = np.array(list(map(int, input().split())))
stu = [[nums+1,student] for nums, student in enumerate(A_i)]

emp = np.full(N, np.nan)
for i, j in stu:
    emp[j-1] = i
emp = emp.astype('int')
print(emp)

Submission status: Wrong Answer

Solution code:
import numpy as np
N = int(input())
l = np.array(input().split())
order = np.argsort(l) + 1 
print(*order)

Submission status: Wrong Answer

Solution code:
n= int(input())
a_list=list(map(int,input().split()))
f_list=[0]*n

for i in a_list:
  f_list[i-1]= a_list.index(i)+1

print(n)
print(*f_list)

Submission status: Wrong Answer

Solution code:
n = int(input())
a = input().replace(" ","")

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

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
n = int(input())
a = input().replace(" ","")
print(a)

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

Submission status: Wrong Answer

Solution code:
n = int(input())

data  = input().split()

for m in range(n):
    data[m] = int(data[m])

res = []

for i in range(1,n+1):
    for m in range(len(data)):
        if i == data[m]:
            res.append(m+1)

print(res)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
array = list(map(int,input().split()))

for i in range(N):
  for item in array:
    if(item == i): 
      print(array.index(item)+1, end=" ")
      break;

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
n=int(input())
a=list(map(int,input().split()))
ans=""

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

Submission status: Wrong Answer

Solution code:
n = int(input())
a = [ int(_) for _ in input().split() ]

ans = []

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

Submission status: Wrong Answer

Solution code:
import numpy as np

N = int(input())
A_i = np.array(list(map(int, input().split())))
stu = [[nums+1,student] for nums, student in enumerate(A_i)]

emp = np.full(N, np.nan)
for i, j in stu:
    emp[j-1] = i
    
print(emp.astype('int'))

Submission status: Wrong Answer

Solution code:
import numpy as np

n= int(input())
a_list=list(map(int,input().split()))
f_list=[0]*n

for i in a_list:
  f_list[i-1]= a_list.index(i)+1

print(n)
#for i in f_list:
#  print(i,sep='',end ="")

print(*f_list)

Submission status: Wrong Answer

Solution code:
import numpy as np

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

ans = ""

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

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

print(ans)

Submission status: Wrong Answer

Solution code:
import sys
#input = sys.stdin.readline

def main():
    n = input()
    a = input().split(" ")
    # r = ""
    # for i in range(int(n)):
    #     r += str(a.index(str(i+1)) + 1) + " "
    # print(r[:-1])
    a = [(a[i],str(i+1)) for i in range(len(a))]
    a = list(map(lambda x:x[1],sorted(a)))
    print(" ".join(a))

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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=" ")

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline

#単入力
n=int(input())

#リスト入力
a = [int(i) for i in input().split()]


l=[]
for i in range(1,n+1):
    for j in range(n):
        if a[j]==i:
            l.append(j+1)
for i in range(len(l)):
    print(l[i],end='')

Submission status: Wrong Answer

Solution code:
import numpy as np

N = int(input())
A_i = np.array(list(map(int, input().split())))
stu = [[nums+1,student] for nums, student in enumerate(A_i)]

emp = np.full(N, np.nan)
for i, j in stu:
    emp[j-1] = i
    print(emp[j-1])

Submission status: Wrong Answer

Solution code:
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=" ")

Submission status: Wrong Answer

Solution code:
n=int(input())
A=list(map(int,input().split()))
a=[]
for i in range(n):
  a.append([i+1,A[i]])
a.sort(key=lambda x:x[1])
lst=[]
for k in range(n):
  lst.append(a[k][0])
print(lst)

Submission status: Wrong Answer

Solution code:
n = input()
a_list = input().split()
ret = []

for i, a in enumerate(a_list):
  ret.append((a, i))

a_sorted = sorted(ret)
b = []
for _, i in a_sorted:
  b.append(str(i+1))

print(" ".join(b))

Submission status: Wrong Answer

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

ans = ""

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

Submission status: Wrong Answer

Solution code:
n = int(input())
array = list(map(int,input().split()))
ans = []
k = 0
while n > k:
  i = 0
  while n > i:
    if array[i] == k + 1:
      ans.append(i+1)
      k += 1
    i += 1
print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int, input().split()))
kye =[]
for i in range(1,n+1):
    kye.append(i)
kye_moji = list(map(str,kye))
d = dict(zip(kye_moji, a))
sorted_d = dict(sorted(d.items(), key = lambda x:x[1]))
l = list(sorted_d.keys())
print(*l)

Submission status: Wrong Answer

Solution code:
import numpy as np

N = int(input())
A_i = np.array(list(map(int, input().split())))
stu = [[nums+1,student] for nums, student in enumerate(A_i)]

hh = np.full(N, np.nan)
for i, j in stu:
  hh[j-1] = i

print(hh.astype('int'))

Submission status: Wrong Answer

Solution code:
n = int(input())
alist = input().split()
Alist = []
for i in alist:
    Alist.append(int(i))
Result = []
print(Alist)
for i in range(1,n+1):
    Result.append(Alist.index(i)+1)
    print(Result[i-1])

Submission status: Wrong Answer

Solution code:

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

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

Submission status: Wrong Answer

Solution code:
import numpy as np
N = int(input())
A = list(map(int, input().split())) 
R = []

for i in range(N):
    result = A.index(i+1) + 1
    R.append(result)
print(R)

Submission status: Wrong Answer

Solution code:
n=int(input())
A=list(map(int,input().split()))
a=[]
for i in range(n):
  a.append([i+1])
for j in range(n):
  a[j].append(A[j])
a.sort(key=lambda x:x[1])
lst=[]
for k in range(n):
  lst.append(str(a[k][0]))
print(map(int,''.join(lst)))

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline

#単入力
n=int(input())

#リスト入力
a = [int(i) for i in input().split()]


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

print(l)

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
n=int(input())
A=list(map(int,input().split()))
a=[]
for i in range(n):
  a.append([i+1])
for j in range(n):
  a[j].append(A[j])
a.sort(key=lambda x:x[1])
lst=[]
for k in range(n):
  lst.append(str(a[k][0]))
print(''.join(lst))

Submission status: Wrong Answer

Solution code:
import numpy as np
N = int(input())

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

print (np.argsort(x)+1)

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int, input().split()))
kye =[]
for i in range(1,n+1):
    kye.append(i)
kye_moji = list(map(str,kye))
d = dict(zip(kye_moji, a))
sorted_d = dict(sorted(d.items(), key = lambda x:x[1]))
l = list(sorted_d.keys())
print(l)

Submission status: Wrong Answer

Solution code:
import numpy as np

n = int(input())
records= np.array([int(i) for i in input().split()])

enrolled = np.argsort(records)

attendance_list = np.array([i+1 for i in range(n)])

attendance_order = np.array(attendance_list[enrolled]).tolist()

result = ' '.join(str(attendance_order))

print(result)

Submission status: Wrong Answer

Solution code:
import numpy as np
N = (int(i) for i in input().split())
b = [int(i) for i in input().split()]
i=np.argsort(b)
print(i+1)

Submission status: Wrong Answer

Solution code:
N = int(input())
A = list(map(int, input().split())) 
 
B = []
 
for i in range(N):
	for k in range(N):
		if i+1 == A[k]:
			B.append(k+1)
 
print(B)

Submission status: Wrong Answer

Solution code:
n=int(input())
A=list(map(int,input().split()))
a=[]
for i in range(n):
  a.append([i+1])
for j in range(n):
  a[j].append(A[j])
a.sort(key=lambda x:x[1])
lst=[]
for i in range(n):
  lst.append(a[i][0])
print(lst)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import numpy as np

N = int(input())
A_i = np.array(list(map(int, input().split())))
stu = [[nums+1,student] for nums, student in enumerate(A_i)]

hh = np.full(N, np.nan)
for i, j in stu:
    hh[j-1] = i
    print(hh[j-1].astype('int'))

Submission status: Wrong Answer

Solution code:
N = int(input())
ar = list(map(int, input().split()))

ansAr = []
for i in range(N):
    ansAr.append(ar.index(i+1)+1)

print(",".join([str(n) for n in ansAr]))

Submission status: Wrong Answer

Solution code:
import numpy as np
N = int(input())
arr = np.array([[int(num), int(i)+1] for i, num in enumerate(input().split())])
print(str(arr[np.argsort(arr[:,0])][:, 1])[1:-1])

Submission status: Wrong Answer

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

B = []

for i in range(N):
	for k in range(N):
		if i+1 == A[k]:
			B.append(k+1)

print(B)

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int, input().split()))
kye =[]
for i in range(1,n+1):
    kye.append(i)
kye_moji = list(map(str,kye))
d = dict(zip(kye_moji, a))
sorted_d = dict(sorted(d.items(), key = lambda x:x[1]))
l = list(sorted_d.keys())
for i in range(len(l)):
    print(l[i])

Submission status: Wrong Answer

Solution code:
N = int(input())
value = input().split(" ")
key = []
ans = []
j = 0
for i in range(N):
    key.append(i + 1)
d = dict(zip(key,value))
d = sorted(d.items(), key=lambda x:x[1])

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

print(*ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
A = list(map(int,input().split()))
for i in A:
    print(i, end=' ')

Submission status: Wrong Answer

Solution code:
import numpy as np

n = int(input())
records= np.array([int(i) for i in input().split()])

enrolled = np.argsort(records)

attendance_list = np.array([i+1 for i in range(n)])

attendance_order = np.array(attendance_list[enrolled]).tolist()

print(attendance_order)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
ar = list(map(int, input().split()))

ansAr = []
for i in range(N):
    ansAr.append(ar.index(i+1)+1)

print(ansAr)

Submission status: Wrong Answer

Solution code:
n = int(input())
students = [int(x) for x in input().split(' ')]
order = [x for x in range(n)]
for s in students:
    order[s-1] = s
print(order)

Submission status: Wrong Answer

Solution code:
n = int(input())
Alist = input().split()
Alist = list(map(int,Alist))
Result = []
for i in range(1,n+1):
    Result.append(Alist.index(i)+1)
print(Result)

Submission status: Wrong Answer

Solution code:
import numpy as np

N = int(input())
A_i = np.array(list(map(int, input().split())))
stu = [[nums+1,student] for nums, student in enumerate(A_i)]

hh = np.full(N, np.nan)
for i, j in stu:
    hh[j-1] = i
    
print(hh.astype('int'))

Submission status: Wrong Answer

Solution code:
import numpy as np
N = int(input())
A = [int(x) for x in input().split()]
ls = []
A = np.array(A)
for i in range(N):
    j = A.argmin()
    ls.append(j+1)
    A[j] = 100000
    print(A)
print(*ls)

Submission status: Wrong Answer

Solution code:
n = int(input())
li = list(map(int,input().split()))
dct = { li[i]:i for i in range(n)}

for k, v in sorted(dct.items(), key=lambda x: x[1]):
    print(str(k), end = ' ' )

Submission status: Wrong Answer

Solution code:
N = int(input())
Ali = list(map(int,input().split()))
L = sorted(Ali)
li = ""
for i in range(N):
    li+=str((Ali.index(L[i])+1))
print(' '.join(map(str, li)))

Submission status: Wrong Answer

Solution code:
N = int(input())
A = list(map(int, input().split()))
tmp = []
for i, a in enumerate(A):
  tmp.append(float(str(a) + "." + str(i + 1)))
tmp.sort()
ans = []
for t in tmp:
  f = t - int(t)
  f = str("{:.1f}".format(f))
  i = f.replace("0.", "")
  ans.append(i)
print(" ".join(ans))

Submission status: Wrong Answer

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


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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import heapq
import copy

N = int(input())
A = input().split()
#print(N)
#print(A)
num = [i for i in range(1, N+1)]
dic = {key: val for key, val in zip(A, num)}
#print(dic)

C = []
heapq.heapify(A)
for i in range(N):
    a = heapq.heappop(A)
    c = dic[a]
    C.append(c)
print(*C)

Submission status: Wrong Answer

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

r = [0]*N

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

print(r)

Submission status: Wrong Answer

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

ans = []

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

print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
A = [int(i) for i in input().split()]
student = [[0]] * N
for n in range(0, N):
    student[A[n]-1] = n+1

print(student)

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int, input().split()))
kye =[]
for i in range(1,n+1):
    kye.append(i)
kye_moji = list(map(str,kye))
d = dict(zip(kye_moji, a)) 
sorted_d = dict(sorted(d.items(), key = lambda x:x[1]))
print(sorted_d.keys())

Submission status: Wrong Answer

Solution code:
import numpy as np

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

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

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

Submission status: Wrong Answer

Solution code:

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

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

Submission status: Wrong Answer

Solution code:
import numpy as np

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

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

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

Submission status: Wrong Answer

Solution code:
import numpy as np

N = int(input())
A_i = np.array(list(map(int, input().split())))
stu = [[nums+1,student] for nums, student in enumerate(A_i)]

hh = np.full(N, np.nan)
for i, j in stu:
  hh[j-1] = hh[j-1] = i

print(hh.astype('int'))

Submission status: Wrong Answer

Solution code:
n, *a = map(int, open(0).read().split())
print("3 1 2")

Submission status: Wrong Answer

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

l = []
AA = A.copy()

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

Submission status: Wrong Answer

Solution code:
import numpy as np

N = int(input())
A_i = np.array(list(map(int, input().split())))
stu = [[nums+1,student] for nums, student in enumerate(A_i)]

hh = np.full(N, np.nan)
for i, j in stu:
  hh[j-1] = hh[j-1] = i

print(hh)

Submission status: Wrong Answer

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

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

print(A)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
A = list(map(int,input().split()))
B = 0
answer =[]

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

Submission status: Wrong Answer

Solution code:
a=input()
li = list(map(int,input().split()))
li = sorted(range(len(li)), key=lambda k: li[k])
li = [i+1 for i in li]
print(li)

Submission status: Wrong Answer

Solution code:
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))

Submission status: Wrong Answer

Solution code:
import numpy as np
N = int(input())
arr = list(map(int,input().split()))
#print(sum([1 for i in range(len(arr)) if arr[i]>=K]))
s =np.zeros(N)
for i in range(len(arr)):
  s[arr[i]-1]=i+1

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

Submission status: Wrong Answer

Solution code:
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))

Submission status: Wrong Answer

Solution code:
N = int(input())
A = input()
for i in range(1,N+1):
	#任意の要素のindexを標準出力
	print(int(A.index(str(i))/2)+1, end=' ')

Submission status: Wrong Answer

Solution code:
import numpy as np
N = int(input())
A = [int(x) for x in input().split()]
ls = []
A = np.array(A)
for i in range(N):
    j = A.argmin()
    ls.append(j+1)
    A[j] = 100
    print(A)
print(*ls)

Submission status: Wrong Answer

Solution code:
n = int(input())
lis = list(map(int,input().split()))
a = list(range(n))
ans = []

for i in range(n):
    ans.append(a[lis[i]-1]+1)

print(*ans)

Submission status: Wrong Answer

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

anser = [0]*n

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

Submission status: Wrong Answer

Solution code:
import heapq
import copy

N = int(input())
A = input().split()
#print(N)
#print(A)
B = copy.copy(A)

C = []
heapq.heapify(A)
for i in range(1,N+1):
    a = heapq.heappop(A)
    c = B.index(a)+1
    C.append(c)
print(*C)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import numpy as np
N = int(input())
A = input().split()
B = [[],[]]
for i in range(N):
  B[0].append(i + 1)
  B[1].append(int(A[i]))

C = np.array(B).T  
C = C.tolist()
D = sorted(C,key=lambda x: x[1])

E = []
for i in range(N):
  E.append(D[i][0])

print(E)

Submission status: Wrong Answer

Solution code:

from sys import stdin
import heapq

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

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

print(ans)

Submission status: Wrong Answer

Solution code:
N=int(input())
A=list(map(int,input().split()))
B=[]
for i in range(N):
  B.append(0)
for j in range(N):
  a=A[j]
  B[a-1]=j+1
print(B)

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline

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

for i in range(1,n+1):
  z = a.index(i)
  b += str(z+1)
  
print(*b)

Submission status: Wrong Answer

Solution code:
N = int(input())
A = list(map(int,input().split()))
B = []

for i in range(N):
    B.append(0)

for i in range(N):
    B[A[i]-1] = i+1
    
print(B)
      
for s in B:
  print(s, end =" ")

Submission status: Wrong Answer

Solution code:
n = int(input())
A = list(map(int, input().split()))
#答えを表示するための行列
Rank = [0]*n
#教室にいる人数をカウントする変数
kyousitu =0
count =0

for i in range(n):
    #まずは教室に入場する
    kyousitu +=1
    for j in range(n):
        if(kyousitu == A[j]):
            Rank[count] = j+1
            count +=1
       

print(Rank)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

#ソートして配列番号を持ってくる
b = {}
for index,x in enumerate(a):
    b[x] = index

ans = sorted(b.items(), key=lambda x: x[0])
print(ans)
for k,v in ans:
     print(str(v+1)+" ",end="")

Submission status: Wrong Answer

Solution code:
n=int(input())
a=map(int,input().split())
h=list(a)
b=range(n)
c=list(b)
for x in c:
 c[x]=x+1
for y in range(n):
 if h[y]==y+1:
  None
 else:
  z=h[y]-1
  c[y]=c[z]
  c[z]=y+1
  h[z]=z+1
for x in range(n):
 c[x]=str(c[x])
print(" ".join(c))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
h = list(map(int,input().split()))

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

Submission status: Wrong Answer

Solution code:
import numpy as np

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

Submission status: Wrong Answer

Solution code:
N = int(input())
a = list(map(int, input().split()))
d = {}
for i, n in enumerate(a):
    d[n] = i+1
print(list(d.values()))

Submission status: Wrong Answer

Solution code:
import copy
N=int(input())
L=[int(x) for x in input().split()]
L0=copy.copy(L)
L.sort()
Ans=[]

for i in range(N):
	for j in range(N):
		if L[i]==L0[j]:
			Ans.append(j+1)

print(Ans)

Submission status: Wrong Answer

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

num = [i+1 for i in range(N)]

for j in range(N-1):
  if A[j] < A[j+1]:
    TMP=A[j]
    A[j]=A[j+1]
    A[j+1]=TMP
    
    TMP2=num[j]
    num[j]=num[j+1]
    num[j+1]=TMP2
num.reverse()

for s in num:
  print(s, end =" ")

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
n = int(input())

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

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

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
import numpy as np

N = int(input())
strA = list(map(int, input().split()))
newstrA = np.array(strA)
print(np.argsort(newstrA)+1)

Submission status: Wrong Answer

Solution code:
def main():
    n = input()
    a = input().split(" ")
    a_s = sorted(a)
    res = [str(a.index(i)+1) for i in a_s]
    print(" ".join(res))

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

N = int(input())

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

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

Submission status: Wrong Answer

Solution code:
N = input()
N = int(N)

A = input().split()

ans = []
for i in range(len(A)):
    ans.append(0)

for a in A:
    ans[int(a)-1] = A.index(a)+1

print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
A = input().split()

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

Submission status: Wrong Answer

Solution code:
import numpy as np

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

Submission status: Wrong Answer

Solution code:
N=int(input())
h=list(map(int,input().split()))
x=h
for i in range(N):
  s=h[i]
  x[s-1]=i+1
print(x)