언어, 알고리즘 공부/백준2020. 2. 12. 16:16[백준 알고리즘] 5622번 다이얼 (Python 3, Java)
word = input() num = ['ABC', 'DEF', 'GHI', 'JKL', 'MNO', 'PQRS', 'TUV', 'WXYZ'] sum = len(word) for i in range(len(word)): for j in num: if word[i] in j: sum += (num.index(j)+2) print(sum) import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedRead..