We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cd7a5ae + c63552d commit f430408Copy full SHA for f430408
1 file changed
learntosurf/Baekjoon/4_1차원_배열 /10810.py
@@ -0,0 +1,10 @@
1
+# 내 풀이
2
+n, m=map(int, input().split())
3
+box = [0]*n
4
+
5
+for _ in range(m) :
6
+ i,j,k = map(int, input().split())
7
+ for idx in range(i, j+1):
8
+ box[idx-1] = k
9
+for i in range(n):
10
+ print(box[i], end=' ')
0 commit comments