Rosetta Problems

Wizard Tower

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