listCount, comInt = list(map(int, input().split()))
bucket = [0] * listCount
for x in range(comInt):
bList = list(map(int, input().split()))
for y in range(bList[0]-1,bList[1]):
bucket[y] = bList[2]
print(' '.join(str(e) for e in bucket))
'알고리즘 > 배열(array)' 카테고리의 다른 글
백준 5597 python (0) | 2023.06.11 |
---|---|
백준 10813 python (0) | 2023.06.10 |
백준 2562 python (0) | 2023.06.09 |
백준 10818 python (0) | 2023.06.09 |
백준 10871 python (0) | 2023.06.09 |