Rosetta Problems

ICPC 2024 miền Trung - H: Painting competition

https://oj.vnoi.info/problem/icpc24_mt_h