Rosetta Problems

High and Low Cube

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