17269-이름궁합 테스트 (python, 파이썬)
1번: 내가 작성한 코드 (큐 활용) import string alpha_list = list(string.ascii_uppercase) count_list = [3,2,1,2,4,3,1,3,1,1,3,1,3,2,1,2,2,2,1,2,1,1,1,2,2,1] alpha_count = dict() x = 0 for alpha in alpha_list: alpha_count[alpha] = count_list[x] x += 1 N, M = map(int, input().split()) A, B = map(str, input().split()) i, j = 0, 0 C = [] while i
2020. 10. 14.