250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- 티스토리챌린지
- Retrieval
- 경사하강법
- N-Queen
- 백트래킹
- n과 m
- video retireval
- 재귀
- 밑바닥부터 시작하는 딥러닝
- 파이썬
- 가상환경
- 4948
- 기계학습
- 1002
- 그리디 알고리즘
- BOJ
- 손실함수
- 1101
- 신경망 학습
- Python
- 9020
- 15649
- 오블완
- 백준
- 개발환경
- pyenv
- 파이싼
- end to end
- REST API
- streamlit
Archives
- Today
- Total
파이톨치
[백준] 1138 본문
728x90
n = int(input())
l = list(map(int, input().split()))
emty = [0 for i in range(n)]
num = 1
for i in l:
idx = 0
for j in range(i):
idx = emty.index(0, idx, len(l))
idx += 1
while emty[idx] != 0:
idx += 1
emty[idx] = num
num += 1
# print(emty)
for i in emty:
print(i, end=" ")
728x90