Rosetta Problems

Dominating color

https://marisaoj.com/problem/281