practivceAlgorithm/백준

[백준][Python] 2605 줄세우기

findTheValue 2021. 8. 29. 00:43

반대로 넣고 뒤집었습니다.

import sys
input = sys.stdin.readline

N = int(input())
arr = list(map(int,input().split()))
answer = []
for i in range(1,N+1):
    answer.insert(arr[i-1],i)
print(*answer[::-1])

'practivceAlgorithm > 백준' 카테고리의 다른 글

[백준][Python] 2581 소수  (0) 2021.08.29
[백준][Python] 2564 경비원  (0) 2021.08.29
[백준][Python] 14696 딱지놀이  (0) 2021.08.29
[백준][Python] 13300 방배정  (0) 2021.08.29
[백준][Python] 10163 색종이  (0) 2021.08.29