1
2
3
4
5
6
7
8
9
10
|
import sys
m,n=map(int,sys.stdin.readline().split())
tmp=[0]*m
for _ in range(n):
a,b,c=map(int,sys.stdin.readline().split())
for i in range(a,b+1):
tmp[i-1]=c
print(tmp[0],end='')
for i in range(1,len(tmp)):
print(" %d"%tmp[i],end='')
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
[백준] 10812 (0) | 2021.01.11 |
---|---|
[백준] 10811 (0) | 2021.01.11 |
[백준] 10809 (0) | 2021.01.11 |
[백준] 10808 (0) | 2021.01.11 |
[백준] 10807 (0) | 2021.01.11 |
댓글