KOREATECH 1057: 걸기 쉬운 전화번호
Link : judge.koreatech.ac.kr/problem.php?id=1057 Python 더보기 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 from sys import stdin num = dict() num[1] = [2, 4] num[2] = [1, 3, 5] num[3] = [2, 6] num[4] = [1, 5, 7] num[5] = [2, 4, 6, 8] num[6] = [3, 5, 9] num[7] = [4, 8] num[8] = [5, 7, 9, 0] num[9] = [6, 8] num[0] = [8] dp = [[0..
2020. 12. 11.