boj step 4 rework

This commit is contained in:
2024-02-19 13:23:50 +09:00
parent e39d555bd0
commit bad1f0723a
5 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
N, M = map(int, input().split())
L = [0 for _ in range(N)]
for _ in range(M):
i, j, k = map(int, input().split())
for m in range(i - 1, j):
L[m] = k
print(" ".join(map(str, L)))