Engineer Artem
HardRating 2000CodeforcesConstructive Algorithms
Approach hintTry it first, then revealHide
Adjacent cells of a chessboard colouring always differ in colour. Adjust each cell by 0 or 1 so that its parity matches its colour, and no two neighbours can be equal.