Rosetta Problems

Custom Painting Master

https://onlinejudge.u-aizu.ac.jp/problems/2289