Rosetta Problems

Painting

https://atcoder.jp/contests/awc0161/tasks/awc0161_e