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 |
Tags
- 1101
- Python
- end to end
- pyenv
- 오블완
- video retireval
- Retrieval
- 백준
- 가상환경
- REST API
- 9020
- 4948
- 백트래킹
- 개발환경
- 1002
- streamlit
- 경사하강법
- N-Queen
- 그리디 알고리즘
- 기계학습
- 손실함수
- 파이썬
- 재귀
- n과 m
- 파이싼
- 신경망 학습
- 15649
- BOJ
- 밑바닥부터 시작하는 딥러닝
- 티스토리챌린지
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