(Python) 백준 1018 체스판 다시 칠하기
(Python) 백준 1018 체스판 다시 칠하기 실버 4 – 전체 탐색 암호 N, M = map(int, input().split()) board = (list(input()) for _ in range(N)) def chess(i, j): global result change_1,change_2 = 0, 0 for row in range(8): for column in range(8): if (row + column) % 2 == 0 and board(i + row)(j + column) … Read more