인프런 커뮤니티 질문&답변
이렇게 풀어도 되나요?
작성
·
210
0
n = int(input())
arr = list(map(int, input().split()))
res = [0] * n
for i in range(n):
cnt = 0
for j in range(n):
if res[j] == 0:
cnt += 1
if cnt > arr[i]:
res[j] = i+1
break
print(*res)
맥이라 자동채점을 못하네요ㅠㅠ





