Softeer: [21년 재직자 대회 예선] 이미지 프로세싱
import sys H, W = map(int, input().split()) grid = [] for i in range(H): grid += list(map(int, input().split())), Q = int(input()) ops = [] for i in range(Q): ops += list(map(int, input().split())), def fill(grid, clr, nclr, y, x): if grid[y][x] != clr or grid[y][x] == nclr: return grid[y][x] = nclr for oy, ox in [(1, 0), (-1, 0), (0, 1), (0, -1)]: ny = oy + y nx = ox + x if not (0
2022.01.09