Rosetta Problems

色塗り (Color Painting)

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/591