Open heartlessly opened 5 years ago
https://heartlessly.github.io/problems/atcoder-code-festival-2017-quala-d/
Description给定一个 $h \times w$ 的网格,试给其中所有格子染 RYGB 四种颜色之一,使得网格上任意一对曼哈顿距离为 $d$ 的格子颜色不同。 $(2 \leq h,w \leq 500, 1\leq d \leq h + w - 2)$
https://heartlessly.github.io/problems/atcoder-code-festival-2017-quala-d/
Description给定一个 $h \times w$ 的网格,试给其中所有格子染 RYGB 四种颜色之一,使得网格上任意一对曼哈顿距离为 $d$ 的格子颜色不同。 $(2 \leq h,w \leq 500, 1\leq d \leq h + w - 2)$