Rosetta Problems

塗りつぶし (Painting)

https://atcoder.jp/contests/joi2023yo2/tasks/joi2023_yo2_c