[문제 13] n, K = map(int, input().split()) graph = [] for i in range(n): graph.append(list(map(int, input().split()))) moves = [[1, 0], [-1, 0], [0, 1], [0, -1]] result = 0 def dfs(x, y): stack = [[x,y]] cnt = 0 M = graph[x][y] while stack: x, y = stack.pop() if graph[x][y] != M: continue graph[x][y] = 0 cnt += 1 for dx, dy in moves: nx, ny = x + dx, y + dy if 0 이렇게하면 몇개 케이스에서 에러가 나오는데, 1조각당 포만감이 ..