백준 #5622

sese·2022년 1월 5일
0

python

dial = ["ABC", "DEF", "GHI", "JKL", "MNO", "PQRS", "TUV", "WXYZ"]

alphabet = input()
time = 0

for i in alphabet:
    for j in dial:
        if i in j:
            time = time + dial.index(j) + 3

print(time)
profile
예전 글은 다크모드로 봐야 잘 보일 수도 있습니다.

0개의 댓글

Powered by GraphCDN, the GraphQL CDN