Skip to content

Commit 74d3ded

Browse files
authored
Master (#76)
* 주말코테 * 변경사항
1 parent 2d2fa22 commit 74d3ded

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

cmkim/2021 카카오 인턴쉽/프로그래밍1.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,27 @@ def solution(s):
66
arr = []
77
i = 0
88
while i < len(s):
9-
#print('i = ', i)
9+
1010

1111
if s[i].isdigit():
1212
arr.append(int(s[i]))
1313

1414
else:
1515
j = 0
16-
#print('i = ', i)
17-
# print(s[i:])
16+
1817
while j < 10:
1918
if num[j] in s[i:i+5]:
20-
#print('num[j] =', num[j])
19+
2120
arr.append(j)
2221
i += len(num[j]) - 1
2322
break
2423
j += 1
2524
i += 1
2625

27-
#print(arr)
2826
answer = int("".join(map(str, arr)))
29-
#print('+'.join(arr))
30-
#answer = int("".join(arr))
3127
print(answer)
3228
return answer
3329

34-
#solution("one4seveneight")
35-
solution('1zerotwozero3')
30+
#solution('1zerotwozero3')
31+
3632

cmkim/2021 프로그래머스 써머코딩/프로그래밍1.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
def solution(code, day, data):
88
answer = []
99
q = []
10-
1110
for i in data:
1211
arr = i.split(' ')
1312
time = []

cmkim/2021 프로그래머스 써머코딩/프로그래밍2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ def solution(t, r):
1818
for k in range(len(wait)):
1919
index = min(index, wait[k][1])
2020

21-
#print(wait)
2221
for k in range(len(wait)):
2322
if wait[k][1] == index:
2423
pop_id = k

0 commit comments

Comments
 (0)