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

Num = int(sys.stdin.readline().rstrip())
Num_str = str(Num)
list_stu_Num = list(sys.stdin.readline().rstrip().split())
list_stu_Num_int = [int(s) for s in list_stu_Num]
list_Attendance_Num_end = None
while Num > 0:
    for i in range(1, Num + 1):
        if list_stu_Num_int.index(i) + 1 == Num:
            list_Attendance_Num = list(str(Num))
            if not list_Attendance_Num_end:
                list_Attendance_Num_end = list_Attendance_Num
            else:
                list_Attendance_Num_end = list_Attendance_Num_end + list_Attendance_Num
    Num = Num - 1
else:
    list_Attendance_Num_end.reverse()
    list_Attendance_Num_end_int = [int(s) for s in list_Attendance_Num_end]
    print(list_Attendance_Num_end_int)


import sys

Num = int(sys.stdin.readline().rstrip())
Num_str = str(Num)
list_stu_Num = list(sys.stdin.readline().rstrip().split())
list_stu_Num_int = [int(s) for s in list_stu_Num]
list_Attendance_Num_end = None
while Num > 0:
    for i in range(1, Num + 1):
        if list_stu_Num_int.index(i) + 1 == Num:
            list_Attendance_Num = list(str(Num))
            if not list_Attendance_Num_end:
                list_Attendance_Num_end = list_Attendance_Num
            else:
                list_Attendance_Num_end = list_Attendance_Num_end + list_Attendance_Num
    Num = Num - 1
else:
    list_Attendance_Num_end.reverse()
    print(list_Attendance_Num_end)


import sys

Num = int(sys.stdin.readline().rstrip())
Num_str = str(Num)
list_stu_Num = list(sys.stdin.readline().rstrip().split())
list_stu_Num_int = [int(s) for s in list_stu_Num]
list_Attendance_Num_end = None
while Num > 0:
    for i in range(1, Num + 1):
        if list_stu_Num_int.index(i) + 1 == Num:
            list_Attendance_Num = list(str(Num))
            if not list_Attendance_Num_end:
                list_Attendance_Num_end = list_Attendance_Num
            else:
                list_Attendance_Num_end = list_Attendance_Num_end + list_Attendance_Num
    Num = Num - 1
else:
    list_Attendance_Num_end.reverse()
    list_Attendance_Num_end_int = [int(s) for s in list_Attendance_Num_end]
    print(*list_Attendance_Num_end_int)


import sys

Num = int(sys.stdin.readline().rstrip())
Num_str = str(Num)
list_stu_Num = list(sys.stdin.readline().rstrip().split())
#print(list_stu_Num)
list_stu_Num_int = [int(s) for s in list_stu_Num]
#print(list_stu_Num_int)
list_Attendance_Num_end = None
while Num > 0:
    for i in range(1, Num + 1):
        if list_stu_Num_int.index(i) + 1 == Num:
            list_Attendance_Num = list(str(list_stu_Num_int.index(i)))
            if not list_Attendance_Num_end:
                list_Attendance_Num_end = list_Attendance_Num
            else:
                list_Attendance_Num_end = list_Attendance_Num_end + list_Attendance_Num
            
    Num = Num - 1
else:
    print(list_Attendance_Num_end)


import sys
import numpy as np

Num = int(sys.stdin.readline().rstrip())
list_stu_Num = list(sys.stdin.readline().rstrip().split())
list_stu_Num_int = [int(s) for s in list_stu_Num]
print(*np.argsort(list_stu_Num_int) + 1)


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted