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

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

import fractions
import copy
import bisect
import math
import numpy as np
import itertools
from itertools import combinations_with_replacement
#import math#数学的計算はこれでいける。普通に0.5乗しても計算可能
#w=input()
from operator import itemgetter
from sys import stdin
#input = sys.stdin.readline#こっちの方が入力が早いが使える時に使っていこう
from operator import mul
from functools import reduce
from collections import Counter
#from collections import deque

#input = stdin.readline


j=0
k=0
n=3
r=1
a=[0]
#n=int(input())
#r=int(input())
#print(M)
#A=int(input())
#B=int(input())
#print(N)
"1行1つの整数を入力を取得し、整数と取得する"


#number_list=list(map(int, input().split(" ")))#数字の時
#print(number_list)
"12 21 332 とか入力する時に使う"
"1行に複数の整数の入力を取得し、整数として扱う"

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
#メモ
for i in number_list:#こっちの方がrage使うより早いらしい
    print(number_list[i-1])#

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

'''
x=[]
y=[]
for i in range(N):
    x1, y1=[int(i) for i in input().split()]
    x.append(x1)
    y.append(y1)
print(x)
print(y)
"複数行に2数値を入力する形式 x座標とy座標を入力するイメージ"
'''

'''
mixlist=[]
for i in range(N):
    a,b=input().split()
    mixlist.append((int(a),b))
print(mixlist)
"複数行にintとstrを複合して入力するやつ，今回はリスト一つで処理している"
'''

'''
#array=[input().split()for i in range(N)]
#print(type(array[0][0]))
#print(array)
"正方行列にstr型の値を入力"
'''

#brray=[list(map(int, input().split(" ")))for i in range(N)]
#print(type(brray[0][0]))
#print(brray)
'''
入力
1 2
4 5
7 8
出力結果
[[1, 2], [4, 5], [7, 8]]
'''
"列数に関して自由度の高いint型の値を入力するタイプの行列"
#以下に別解を記載
#N, M = [int(i) for i in input().split()]
'''
table = [[int(i) for i in input().split()] for m in range(m)]

print(type(N))
print(N)
print(type(M))
print(M)

print(type(table))
print(table)
'''




#s=input()
#a=[int(i) for i in s]
#print(a[0])
#print([a])
#単数値．桁ごとに分割したい．入力と出力は以下の通り
#イメージとして1桁ごとにリストに値を入れているかんじ
#intを取ると文字列分解に使える
'''
入力
1234
出力
1
[[1, 2, 3, 4]]
'''




'''
word_list= input().split(" ")
print(word_list[0])
"連続文字列の入力"
"qw er ty とかの入力に使う"
"入力すると空白で区切ったところでlistの番号が与えられる"
'''



'''
A, B, C=stdin.readline().rstrip().split()#str style 何個でもいけることが多い
print(A)
"リストではなく独立したstr型を入れるなら以下のやり方でOK"
'''


#a= stdin.readline().rstrip()
#print(a.upper())
"aという変数に入っているものを大文字にして出力"


#a,b=map(int, input().split())  #int style 複数数値入力　「A B」みたいなスペース空いた入力のとき

#なんかうまく入力されるけど
#a=[[int(i) for i in 1.strip()]for 1 in sys.stdin]
#a = [[int(c) for c in l.strip()] for l in sys.stdin]]
#print(a)
#複数行の数値を入力して正方行列を作成


##############################################################################################
##############################################################################################
#under this line explains example calculation



'''
コンビネーションの組み合わせの中身を出力する形式
for i in itertools.combinations(brray, 2)
combinationsをpermutationsにすれば順列になる
今回なら(abc133B)
入力
1 2
5 5
-2 8
出力
[[1, 2], [5, 5], [-2, 8]]
もちろん一次元リストでも使えるし
何よりiもリストのように使えるので便利
'''

#nCr combination
'''
def cmb(n,r):
    #When n < r , this function isn't valid
    r= min(n-r,r)
    #print(n,r)
    if r == 0: return 1
    over = reduce(mul, range(n, n-r, -1))
    #flochart mul(n,n-1)=x
    #next     mul(x,n-2)........(n-r+1,n-r)
    #mul read a,b and returns a*b

    under = reduce(mul, range(1, r+1))
    #print(over, under)
    #reduce is applied mul(1,2)=2
    #next   mul(2,3)=6
    #next   mul(6,4)=4.........last(r!,r+1)=r+1!

    return over // under
    #// is integer divide
    #calc example 5C2
    #over=5*4*3
    #under=3*2*1
a = cmb(n, r)
#print(a)
'''

'''
import itertools
from itertools import combinations_with_replacement

combinationについて
以下の違いを意識しよう
combinations() p, r 長さrのタプル列、ソートされた順で重複なし

combinations_with_replacement() p, r 長さrのタプル列、ソートされた順で重複あり


使用例 　　　　　　　　　　　                  出力　　
combinations('ABCD', 2)　　　　　　　　　　　　AB AC AD BC BD CD

combinations_with_replacement('ABCD', 2)　　 AA AB AC AD BB BC BD CC CD DD
'''



'''
#集計
#example
#a=[2,2,2,3,4,3,1,2,1,3,1,2,1,2,2,1,2,1]
#a=Counter(a)
for i in a.most_common(n):print(i)
#most_common()メソッドは、出現回数が多い要素順にCounterオブジェクトを並び替えます。
#引数にint型の数字nを設定した場合は、出現回数が高い上位ｎ個の要素を返します。
#何も設定しなければ、コンテナ型にあるすべての要素を出現回数の順番に並び替えたタプル型オブジェクトを返します。
#out put
#(2, 8)
 #(1, 6)
#(3, 3)
#(4, 1)
'''


#二部探索(binary search)
#A = [1, 2, 3, 3, 3, 4, 4, 6, 6, 6, 6]
#print(A)
#index = bisect.bisect_left(A, 5) # 7 最も左(前)の挿入箇所が返ってきている
#A.insert(index, 5)
#print(index)
#print(A)
'''
bisect.bisect_left(a, x, lo=0, h=len(a))
引数
a: ソート済みリスト
x: 挿入したい値
lo: 探索範囲の下限
hi: 探索範囲の上限
(lo, hiはスライスと同様の指定方法)
bisect_leftはソートされたリストaに対して順序を保ったままxを挿入できる箇所を探索します。leftが示す通り、aにすでにxが存在している場合は、挿入箇所は既存のxよりも左側になります。また、lo, hiを指定することで探索範囲を絞り込むことも可能です。デフォルトはaの全体が探索対象です。
'''

'''
素数の判定
'''


def is_prime(n):
    if n == 1: return False

    for k in range(2, int(np.sqrt(n)) + 1):
        #sqrt(n)+1以上は考えて約数はないので却下
        if n % k == 0:
            return False
            #割り切れたらFalse
    return True


'''
npのmaxとmaximumの違い
xs = np.array([1, -2, 3])
np.max(xs, 0)
この出力は3となります．[1, -2, 3]と0の4つの数字のうち，最も大きい値を出力します．

一方で，[max(1, 0), max(-2, 0), max(3, 0)]を出力したい時があります．
その時は，numpyのmaximum関数を用います．

xs = np.array([1, -2, 3])
np.maximum(xs, 0)  # [1, 0, 3]

'''

def factorial(x, mod=10**9+7):
    # x!
    # 階乗
    # ex) factorial(5) = 120
    tmp = 1
    for i in range(1, x+1):
        tmp = (tmp * i) % mod
    return tmp
    '''
    Basically, when you do a**d % n, you actually have to calculate a**d, which could be quite large.
    But there are ways of computing a**d % n without having to compute a**d itself, and that is what pow does.
    '''


########################################################################
########################################################################
#b2=a[:]  #1次元のときはコピーはこれで良い
#print(b2)

#a= [[0]*3 for i in range(5)] #2次元配列はこう準備、[[0]*3]*5だとだめ
#b3=copy.deepcopy(a)  #2次元配列はこうコピーする
#print(b3)

def main():

    steps=0
    state=0
    j=0
    k=0
    n=int(input())
    a=[]
    #a,b=map(int, input().split(" "))
    nl=list(map(int, input().split(" ")))#数字の時
    student={}
    for i in range(n):
        student[i+1]=nl[i]
    #print(student)

    for j in range(n):

        jun=[k for k, v in student.items() if v== j+1]
        #jun=k for k, v in student.items() if v== j+1
        #mylist[len(mylist):len(mylist)]
        a[len(a):len(a)]=jun
    s = " ".join(map(str,a))
    print(s)


    #if state in known_states and not flag: # state => 2 steps => 5
        #こうやってある要素がリストの中にあるか探すのか
    #print(f'steps: {steps}, state: {state}')
    #こう書いてあるとデバックしやすい

    #dp= [[0]*3 for i in range(5)]#列　行
    #dp用の0の入ったやつ
    #dp= [[0]*(w+1) for i in range(n+1)]#0からwまでのw+1回計算するから
    #print(dp)＃初期条件が入る分計算回数+1列分必要(この場合は判断すべきものの数)
    w=1
    DP = np.zeros(w+1, dtype=int)#これでも一次元リストが作れる
    exdp=np.zeros((3,4)) # ３×４の２次元配列を生成。2次元ならこう
    #dtypeは指定しないとfloatになる
    #for i in range(n):#ちょっとした入力に便利
    #    a, b = map(int, input().split())
        #dp[i][0] += [a]
        #これだとintとlistをつなぐことになって不適
    #    dp[i] += [a]
    #    dp[i] += [b]
        #これはうまくいく
        #やり方はいろいろあるということ
    #print(dp)


    "1行1つの整数を入力を取得し、整数と取得する"
    #nl=list(map(int, input().split(" ")))#数字の時
    #print(number_list)
    "12 21 332 とか入力する時に使う"
    "1行に複数の整数の入力を取得し、整数として扱う"
    #brray=[list(map(int, input().split(" ")))for i in range(N)
    #print(brray)


    #s=input()
    #a=[int(i) for i in s]#int取るとstrでも行ける
    #print(a)
    '''
    入力
    1234
    出力
    [1, 2, 3, 4]
    '''
    pin_l=["x" for i in range(10)]#内包表記に慣れろ
    #print(pin_l)

    ls = ["a", "b", "c", "d", "e"]


    #print(ls[2:5])
    #スライスでの取得

    #print(ls[:-3])
    #一番左端から右から3番目より左まで取得

    #print(ls[:4:2])
    #スライスで1個飛ばしで取得
    #ないときは左端スタート
    #始点のインデックス番号 : 終点のインデックス番号 : スキップする数+1
    #print(ls[::2])
    '''
    lsというリストの場合に、1つ飛びの値を取得したい場合には
    ls[::2]
    のようにします。こうすると、
    ["a", "c", "d"]と出力される
    '''

if __name__ == "__main__":
    main()

Submission status: Time Limit Exceeded

Solution code:
N=int(input())
A = [int(hoge) for hoge in input().split()]
print(*[A.index(j)+1 for j in range(1,N+1)] )

Submission status: Time Limit Exceeded

Solution code:
n=int(input())
l=list(map(int,input().split()))
list=[]
for ll in l:
  list.append([l.index(ll)+1,ll])
list.sort(key=lambda x:x[1])
ans=[]
for aa in list:
  ans.append(aa[0])
print(*ans)

Submission status: Time Limit Exceeded

Solution code:
import sys

readline = sys.stdin.readline

def main():
    N = int(input())
    A = list(map(int, input().split()))
    ans = []
    for i in range(1, len(A)+1):
        ans.append(A.index(i)+1)
    print(*ans)

if __name__ == "__main__":
    main()

Submission status: Time Limit Exceeded

Solution code:
# https://atcoder.jp/contests/abc142/tasks/abc142_c

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

ans = str(A_list.index(1) + 1)
for i in range(2, N + 1):
    tmp = str(A_list.index(i) + 1)
    ans = ' '.join([ans, tmp])

print(ans)

Submission status: Time Limit Exceeded

Solution code:
# https://atcoder.jp/contests/abc142/tasks/abc142_c

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

ans_list = []

for i in range(1, N + 1):
    ans_list.append(str(A_list.index(i) + 1))

print(' '.join(ans_list))

Submission status: Time Limit Exceeded

Solution code:
s=int(input())
a=list(map(int,input().split()))
b=a[:]
b.sort()
index=[]
for i in range(0,len(b)):
    index.append(a.index(b[i])+1)
    
print(*index)

Submission status: Time Limit Exceeded

Solution code:
N=int(input())
A=list(map(int, input().split()))
ans = ""
for i in range(N):
  ans += str(A.index(i+1)+1) + " "
print(ans)

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

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

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

Solution code:
# coding: utf-8
N = int(input())
A = list(map(int, input().split()))

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

Submission status: Time Limit Exceeded

Solution code:
# coding: utf-8
N = int(input())
A = list(map(int, input().split()))
lst = [A.index(i)+1 for i in range(1, N+1)]
print(' '.join(map(str, lst)))

Submission status: Time Limit Exceeded

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

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

Submission status: Time Limit Exceeded

Solution code:
N=int(input())
A=list(map(int,input().split()))
B=[]*N
for i in range(1,N+1):
    print(A.index(i)+1,end=" ")

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

cnt = 1
ans =[0] * n

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

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

Submission status: Time Limit Exceeded

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

cnt = 1
ans=[]
for _ in range(n):
    for i in range(n):
        if a[i] == cnt:
            ans.append(i+1)
            cnt += 1
            break

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

Submission status: Time Limit Exceeded

Solution code:
import numpy as np

n = int(input())
A = np.array(list(map(float, input().split())))

ans = [0 for _ in range(n)]
for i in range(n):
  tmpidx = np.argmin(A)
  A[tmpidx] = np.inf
  ans[i] = tmpidx+1

print(*ans)

Submission status: Time Limit Exceeded

Solution code:
import numpy as np

n = int(input())
A = np.array(list(map(float, input().split())))

ans = []
for i in range(n):
  tmpidx = np.argmin(A)
  A[tmpidx] = np.inf
  ans.append(tmpidx+1)

print(*ans)

Submission status: Time Limit Exceeded

Solution code:
import numpy as np

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

ans = []
for i in range(n):
  tmpidx = np.argmin(A)
  A[tmpidx] = 10 ** 9
  ans.append(tmpidx+1)

print(*ans)

Submission status: Time Limit Exceeded

Solution code:
import numpy as np

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

ans = []
for i in range(n):
  tmpidx = np.argmin(A)
  A[tmpidx] = 10 ** 9
  print(tmpidx+1)

Submission status: Time Limit Exceeded

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

ans = []
for i in range(n):
  tmpidx = A.index(min(A))
  A[tmpidx] = 10 ** 9
  print(tmpidx+1)

Submission status: Time Limit Exceeded

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

ans = []
for i in range(n):
  tmpidx = A.index(min(A))
  ans.append(tmpidx+1)
  A[tmpidx] = 10 ** 9
  
for a in ans:
  print(a)

Submission status: Time Limit Exceeded

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

B = sorted(A)

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

Submission status: Time Limit Exceeded

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

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

Submission status: Time Limit Exceeded

Solution code:
n = int(input())
lst = list(map(int,input().split()))
reallst = []
for k in range(1,n+1):
  for i in range(n):
    if lst[i] == k:
      reallst.append(i+1)
a = [str(reallst[j]) for j in range(n)]
print(" ".join(a))

Submission status: Time Limit Exceeded

Solution code:
n = int(input())
lst = list(map(int,input().split()))
reallst = []
for k in range(1,n+1):
  for i in range(n):
    if lst[i] == k:
      reallst.append(i+1)
a = [str(reallst[j]) for j in range(n)]
print(" ".join(a))

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

for i in range(N):
    ans.append(A.index(i+1)+1)

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

Submission status: Time Limit Exceeded

Solution code:
n = int(input())
nums = list(map(int, input().split()))
result = []

minNum = min(nums)
while(len(result) != n):
    result.append(str(nums.index(minNum) + 1))
    nums[nums.index(minNum)] = 10**5 + 1
    minNum += 1

print((" ").join(result))

Submission status: Time Limit Exceeded

Solution code:
n = int(input())
nums = list(map(int, input().split()))
result = []

while(len(result) != n):
    result.append(str(nums.index(min(nums)) + 1))
    nums[nums.index(min(nums))] = 10**5 + 1

print((" ").join(result))

Submission status: Time Limit Exceeded

Solution code:
n = int(input())
a_list = list(map(int,input().split()))
for i in range(n):
    a_list[i] = [a_list[i],str(i+1)]
a_list.sort()
ans = ""
for i in range(n):
    ans += a_list[i][1] + " "
print(ans)

Submission status: Time Limit Exceeded

Solution code:
n = int(input())
a_list = list(map(int,input().split()))
for i in range(n):
    a_list[i] = [a_list[i],i+1]
a_list.sort()
ans = ""
for i in range(n):
    ans += str(a_list[i][1]) + " "
print(ans)

Submission status: Time Limit Exceeded

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


ans = [0]*n
for i in range(1,n+1):
    ans[i-1] = s.index(i) + 1

print(*ans)

Submission status: Time Limit Exceeded

Solution code:
N = int(input())
lis = list(map(int,input().split()))
dic = {}
for i,popu in zip(range(1,N+1),lis):
    dic[i] = popu
for j in range(1,N+1):
    for k,l in dic.items():
        if l == j:
            print(k,end = " ")

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

countl = [0] * n
countn = ""
# print(countl)
#考え方：countlのi-1番目にiという数字のindexナンバーを入れる
#一度0のリストを作っておけばいいか
for i in range(n):
    indi = a.index(i+1)
    countl[i] = str(indi +1)
    # countn = " ".join(indi+1)
    # print(countn)

j_countl = " ".join(countl)
print(j_countl)

Submission status: Time Limit Exceeded

Solution code:
n = int(input())
a = list(map(int, input().split()))
ans = []
counter = 1
while counter <= n:
    for see in a:
        if see == counter:
            ans.append(a.index(see) + 1)
            counter += 1
            break
[print(x, end=' ')for x in ans]

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

Solution code:
n=int(input())
a=list(map(int,input().split()))
a1=sorted(a)
ans=''
for i in range(n):
    for j in range(n):
        if a1[i]==a[j]:
            ans+=str(j+1)+' '
print(ans)

Submission status: Time Limit Exceeded

Solution code:
from collections import deque

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

for i in range(1, N + 1):
    ans.append(A.index(i) + 1)

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

Submission status: Time Limit Exceeded

Solution code:
from collections import deque
import heapq

N = int(input())
A = list(map(int, input().split()))
B = A.copy()
heapq.heapify(B)
ans = deque()

for i in range(N - 1):
    ans.append(A.index(heapq.heappop(B)) + 1)

print(" ".join(map(str, list(ans) + [A.index(B[0]) + 1])))

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

Solution code:
n = int(input())
a = list(map(int, input().split()))
x = []
for i in range(1, n+1):
    x.append(str(a.index(i)+1))
results = ' '.join(x)
print(results)

Submission status: Time Limit Exceeded

Solution code:
n = int(input())
ls = list(map(int, input().split()))
lsa = []
for j in range(n):
    k = ls.index(j + 1)
    lsa += [k + 1]
for m in range(n):
    print(lsa[m], end = " ")

Submission status: Time Limit Exceeded

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(' '.join(map(str, B)))

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

for i in range(n):
    print(ans[i])

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

Solution code:
import numpy as np
N = int(input())
A = np.array(list(map(int,input().split())))
M = np.arange(1,N+1)
ls = []
for i in range(1,N+1):
    ls.append(M[A==i][0])
print(*ls)

Submission status: Time Limit Exceeded

Solution code:
N = int(input())
A_list = list(map(int, input().split()))
sorted_A_list = sorted(A_list)
sorted_A_list
for a in sorted_A_list:
    print(A_list.index(a) + 1, end=' ')

Submission status: Time Limit Exceeded

Solution code:
N = int(input())
As = list(map(int, input().split()))
ordList = []
for i in range(1,N+1):
    ordList.append(str(As.index(i)+1))
print(' '.join(ordList))

Submission status: Time Limit Exceeded

Solution code:
n = int(input())
a = list(map(int, input().split()))
b = sorted(a)
ans = [a.index(i)+1 for i in b]
print(' '.join(map(str, ans)))

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

Solution code:
n = int(input())
a = list(map(int, input().split()))
ans = str()
for i in range(n):
    idx = a.index(i+1)
    ans += str(idx+1) + ' '
print(ans.strip(''))

Submission status: Time Limit Exceeded

Solution code:
# 2020/04/22
# AtCoder Beginner Contest 142 - C

# Input
n = int(input())
a = list(map(int,input().split()))
tbl = [-1] * (n+1)

# Calc
for i in range(n):
    tbl[a[i]] = i+1

# Output
ans = str(tbl[1])
for i in range(2, n+1):
    ans = ans + " " + str(tbl[i])

print(ans)

Submission status: Time Limit Exceeded

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

count = 1

for i in range(n):
  print(nn.index(count)+1)
  count += 1

Submission status: Time Limit Exceeded

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

l = sorted(nn)

for i in l:
  print(nn.index(i)+1)

Submission status: Time Limit Exceeded

Solution code:
# 2020/04/22
# AtCoder Beginner Contest 142 - C

from operator import itemgetter

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

# Calc
for i in range(n):
    wkl = [i+1, a[i]]
    tbl.append(wkl)

# Sort key B
tbl.sort(key=itemgetter(1))

# Output
ans = str(tbl[0][0])
for i in range(1, n):
    ans = ans + " " + str(tbl[i][0])

print(ans)

Submission status: Time Limit Exceeded

Solution code:
n = int(input())
nn = list(map(int,input().split()))
import numpy as np

l = np.sort(nn)

for i in l:
  print(nn.index(i)+1)

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

Solution code:
from collections import deque
n = int(input())
li = list(map(int, input().split()))
ans_li = deque()
for i in range(1, n+1):
    ans_li.append(li.index(i)+1)
print(*ans_li)

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

Solution code:
N=int(input())
L=list(map(int,input().split()))
for i in range(1,N+1):
  print(L.index(i)+1,end="")
  if i<N:
    print(" ",end="")
print()

Submission status: Time Limit Exceeded

Solution code:
#Coding:Utf-8
import sys
input=sys.stdin.readline

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

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

Submission status: Time Limit Exceeded

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

print(*ans)

Submission status: Time Limit Exceeded

Solution code:
n=int(input())
a=list(map(int,input().split()))
for i in range(0,n+1):
    for j in range(0,n):
        if a[j]==i:
            print("%d "%int(j+1),end='')

Submission status: Time Limit Exceeded

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

ans = [-1] * N

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

print(*ans)

Submission status: Time Limit Exceeded

Solution code:
import itertools
##print(ord("A"))
n = int(input())
#n,k = map(int,input().split())
h = list(map(int,input().split()))	
ans = []

for i in range(1,n+1):
    #print(i)
    for j in range(n):
        
        if h[j] == i:
            ans.append(j+1)
#print(ans)
for i in range(len(ans)):
    print(ans[i],end=" ")

Submission status: Time Limit Exceeded

Solution code:
def main():
    n = int(input())
    a = list(map(int, input().split()))
    num = list(range(1, n+1))

    for i in range(1, n+1):
        for index, j in enumerate(a, 1):
            if i == j:
                print(index, sep="", end=" ")


if __name__ == '__main__':
    main()

Submission status: Time Limit Exceeded

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

ans = list()

for i in range(1, N+1):
    ans.append(la.index(i) + 1)

print(*ans)

Submission status: Time Limit Exceeded

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

ans = list()

for i in range(1, N+1):
    k = 0
    while la[k] != i:
        k += 1
    ans.append(k+1)

print(*ans)

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

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

Submission status: Time Limit Exceeded

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

N = INT()
A = LIST()

for i in range(1, N+1):
  for j in range(N):
    if i == A[j]:
      print(j+1, end="")
      print(" ",end="")
      break
      
print()

Submission status: Time Limit Exceeded

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

N = INT()
A = LIST()

for i in range(1, N+1):
  for j in range(N):
    if i == A[j]:
      print(j+1, end="")
      print(" ",end="")
print()

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

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

Submission status: Time Limit Exceeded

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

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

Submission status: Time Limit Exceeded

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

l = [0]*N

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

Submission status: Time Limit Exceeded

Solution code:
n=int(input())
A=list(map(int,input().split()))
B=[]
for i in range(n):
    c=A.index(min(A))
    B.append(c+1)
    A[c]=n+1
print(*B)

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

B = [i+1 for i in range(N)]
d = dict(zip(A, B))
s = ''
for i in range(N):
    s = s + str(d[i+1]) + ' '
print(s)

Submission status: Time Limit Exceeded

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

B = [i+1 for i in range(N)]
d = dict(zip(B, A))
d = sorted(d.items(), key=lambda x: x[1])
s = ''
for i in range(N):
    s = s + str(d[i][0]) + ' '
print(s)

Submission status: Time Limit Exceeded

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

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

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

Submission status: Time Limit Exceeded

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

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

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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