
코드 # collections를 Counter로 쓸 수 있음 from collections import Counter # 심사위원 수와 표를 입력 v = int(input()) a = input() # 입력받은 표를 collections를 통해 요소 개수별로 정리한 내용을 mycount에 저장 mycount = Counter(a) # mycount에 저장된 내용을 바탕으로 개수를 비교하여 결과 출력 if mycount['A'] == mycount['B']: print('Tie') elif mycount['A'] > mycount['B']: print('A') else: print('B') 파이썬의 collections함수를 호출하여 만들었다 collections 함수는 문자열을 딕셔너리로 만들어서 딕셔너..