Skip to content

Commit

Permalink
[level 1] Title: 숫자 문자열과 영단어, Time: 0.02 ms, Memory: 10.3 MB -Baekjoo…
Browse files Browse the repository at this point in the history
…nHub
  • Loading branch information
2sojeong committed Jul 10, 2024
1 parent f177527 commit 653551d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

### 제출 일자

2024년 03월 05일 17:02:53
2024년 07월 10일 19:23:25

### 문제 설명

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
def solution(s):
answer = {'zero':'0', 'one':'1', 'two':'2', 'three':'3', 'four':'4', 'five':'5', 'six':'6', 'seven':'7', 'eight':'8', 'nine':'9'}
for i in answer.keys():
s=s.replace(i,answer[i])

return int(s)




dic={"zero":"0","one":"1","two":"2","three":"3","four":"4","five":"5","six":"6","seven":"7","eight":"8","nine":"9","ten":"10"}
print(dic.keys())
for i in dic.keys():
s=s.replace(i,dic[i])
return int(s)

0 comments on commit 653551d

Please sign in to comment.