Errich-Tac-Toe (Easy Version)
HardRating 2100CodeforcesConstructive Algorithms
Approach hintTry it first, then revealHide
Three consecutive cells in a row or column cover all three residues of (i + j) mod 3. Pick the residue class holding the fewest tokens: changing those tokens breaks every triple and costs at most k / 3 operations.