Rosetta Problems

Rectangle Game

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