[백준][Python] 3108 로고 칠하고 지우는 방법 import sys input = sys.stdin.readline from collections import deque def remove(x,y): q = deque() q.append([x,y]) matrix[x][y] = 0 while q: x, y = q.popleft() for i in range(4): nx = x + dx[i] ny = y + dy[i] if 0 practivceAlgorithm/백준 2021.09.05