Rosetta Problems

Half Plane Painting

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