diff --git "a/cmkim/2021 \354\271\264\354\271\264\354\230\244 \354\235\270\355\204\264\354\211\275/\355\224\204\353\241\234\352\267\270\353\236\230\353\260\2151.py" "b/cmkim/2021 \354\271\264\354\271\264\354\230\244 \354\235\270\355\204\264\354\211\275/\355\224\204\353\241\234\352\267\270\353\236\230\353\260\2151.py" index 751ad9e..cbc27b0 100644 --- "a/cmkim/2021 \354\271\264\354\271\264\354\230\244 \354\235\270\355\204\264\354\211\275/\355\224\204\353\241\234\352\267\270\353\236\230\353\260\2151.py" +++ "b/cmkim/2021 \354\271\264\354\271\264\354\230\244 \354\235\270\355\204\264\354\211\275/\355\224\204\353\241\234\352\267\270\353\236\230\353\260\2151.py" @@ -6,31 +6,27 @@ def solution(s): arr = [] i = 0 while i < len(s): - #print('i = ', i) + if s[i].isdigit(): arr.append(int(s[i])) else: j = 0 - #print('i = ', i) - # print(s[i:]) + while j < 10: if num[j] in s[i:i+5]: - #print('num[j] =', num[j]) + arr.append(j) i += len(num[j]) - 1 break j += 1 i += 1 - #print(arr) answer = int("".join(map(str, arr))) - #print('+'.join(arr)) - #answer = int("".join(arr)) print(answer) return answer -#solution("one4seveneight") -solution('1zerotwozero3') +#solution('1zerotwozero3') + diff --git "a/cmkim/2021 \355\224\204\353\241\234\352\267\270\353\236\230\353\250\270\354\212\244 \354\215\250\353\250\270\354\275\224\353\224\251/\355\224\204\353\241\234\352\267\270\353\236\230\353\260\2151.py" "b/cmkim/2021 \355\224\204\353\241\234\352\267\270\353\236\230\353\250\270\354\212\244 \354\215\250\353\250\270\354\275\224\353\224\251/\355\224\204\353\241\234\352\267\270\353\236\230\353\260\2151.py" index ee69684..aafe065 100644 --- "a/cmkim/2021 \355\224\204\353\241\234\352\267\270\353\236\230\353\250\270\354\212\244 \354\215\250\353\250\270\354\275\224\353\224\251/\355\224\204\353\241\234\352\267\270\353\236\230\353\260\2151.py" +++ "b/cmkim/2021 \355\224\204\353\241\234\352\267\270\353\236\230\353\250\270\354\212\244 \354\215\250\353\250\270\354\275\224\353\224\251/\355\224\204\353\241\234\352\267\270\353\236\230\353\260\2151.py" @@ -7,7 +7,6 @@ def solution(code, day, data): answer = [] q = [] - for i in data: arr = i.split(' ') time = [] diff --git "a/cmkim/2021 \355\224\204\353\241\234\352\267\270\353\236\230\353\250\270\354\212\244 \354\215\250\353\250\270\354\275\224\353\224\251/\355\224\204\353\241\234\352\267\270\353\236\230\353\260\2152.py" "b/cmkim/2021 \355\224\204\353\241\234\352\267\270\353\236\230\353\250\270\354\212\244 \354\215\250\353\250\270\354\275\224\353\224\251/\355\224\204\353\241\234\352\267\270\353\236\230\353\260\2152.py" index 5f1c6fc..811ba5e 100644 --- "a/cmkim/2021 \355\224\204\353\241\234\352\267\270\353\236\230\353\250\270\354\212\244 \354\215\250\353\250\270\354\275\224\353\224\251/\355\224\204\353\241\234\352\267\270\353\236\230\353\260\2152.py" +++ "b/cmkim/2021 \355\224\204\353\241\234\352\267\270\353\236\230\353\250\270\354\212\244 \354\215\250\353\250\270\354\275\224\353\224\251/\355\224\204\353\241\234\352\267\270\353\236\230\353\260\2152.py" @@ -18,7 +18,6 @@ def solution(t, r): for k in range(len(wait)): index = min(index, wait[k][1]) - #print(wait) for k in range(len(wait)): if wait[k][1] == index: pop_id = k