Skip to content

Commit 1c9d358

Browse files
authored
[BOJ] 1138 한 줄로 서기 (S2)
1 parent f442deb commit 1c9d358

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

김지호/5주차/260129.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# https://www.acmicpc.net/problem/1138
2+
# 한 줄로 서기, 실버2
3+
4+
import sys
5+
sys.stdin = open("./input.txt",'r')
6+
7+
N = int(input())
8+
left_count = list(map(int,input().split(" ")))
9+
10+
# 키가 큰 순서대로 탐색
11+
result = []
12+
for i in range(N,0,-1):
13+
count = left_count[i-1]
14+
result.insert(count,i)
15+
16+
print(" ".join(map(str,result)))

0 commit comments

Comments
 (0)