Rosetta Problems

Red Painting(★4)

https://atcoder.jp/contests/typical90/tasks/typical90_l