블로그21 [백준] 20365 블로그2 [풀지못했던 이유 + 코드] 그리디 & 구현 https://www.acmicpc.net/problem/20365 20365번: 블로그2 neighbor 블로그를 운영하는 일우는 매일 아침 풀고 싶은 문제를 미리 정해놓고 글을 올린다. 그리고 매일 밤 각각의 문제에 대하여, 해결한 경우 파란색, 해결하지 못한 경우 빨간색으로 칠한 www.acmicpc.net 코드 import sys from collections import Counter import copy input = sys.stdin.readline n = int(input()) col = list(map(str, input().strip())) dic = Counter(col) mainColor = [k for k ,v in dic.items() if max(dic.valu.. 2023. 6. 30. 이전 1 다음