Rosetta Problems

Contiguous Repainting

https://atcoder.jp/contests/agc008/tasks/agc008_b