Skip to content

Commit 2cbf6db

Browse files
committed
0420
1 parent b8bd5b4 commit 2cbf6db

File tree

2 files changed

+16
-23
lines changed

2 files changed

+16
-23
lines changed

.idea/workspace.xml

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SWEA/Intermediate/파이썬 SW문제해결 기본 - Linkend List/수열 합치기/수열 합치기.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,7 @@
44
txt = []
55
for _ in range(M):
66
arr = list(map(int, input().split()))
7-
start = arr[0]
7+
start = arr[0]-1
8+
89

9-
if txt:
10-
cnt = 0
11-
for a in arr:
12-
txt.insert((start + cnt) - 1, a)
13-
cnt += 1
14-
else:
15-
for a in arr:
16-
txt.append(a)
1710
print(txt)

0 commit comments

Comments
 (0)