Rosetta Problems

Waffle with Holes

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