Skip to content

Baekjoon 2605

1. Problem

문제 확인하기

2. Solution

N = int(input())
arr = list(map(int, input().split()))
lst = []

for i in range(N):
    if i == 0:
        lst.insert(0, i+1)
    else:
        lst.insert(arr[i], i+1)

for i in reversed(lst):
    print(i, end=" ")