We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f442deb commit 1c9d358Copy full SHA for 1c9d358
1 file changed
김지호/5주차/260129.py
@@ -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