![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fbj8UKK%2FbtsHCW1Y6C8%2FPZnKLt5lkeKg6VGegDCqI1%2Fimg.png)
백준 / 5622번 / 다이얼 / python 파이썬
·
코딩테스트/백준 (python)
문제 : https://www.acmicpc.net/problem/5622 코드 answer = 0num = ['', '', '', 'ABC', 'DEF', 'GHI', 'JKL', 'MNO', 'PQRS', 'TUV', 'WXYZ']word = input()for w in word: for i, n in enumerate(num): if w in n: answer += iprint(answer)