https://www.acmicpc.net/problem/1018 25.02.13 풀이 import syssys.stdin = open('solve.txt')input = sys.stdin.readlineN,M = map(int, input().split())board = [list(input().strip()) for _ in range(N)] # strip을 통해 \n 을 없앤다.# 부분집합 체크하는 함수def check_board(s_y,s_x,firstcolor): count = 0 for y in range(s_y, s_y + 8): for x in range(s_x, s_x + 8): if (x+y) % 2 == 0: i..