CF1450C2 Errich-Tac-Toe (Hard Version)

CF1450C2 Errich-Tac-Toe (Hard Version)

考虑刻画不合法条件。

给网格染色 \(col_{(x,y)}=(x+y)\mod 3\),则连续三个同色棋子