Rosetta Problems

Cubic Eight-Puzzle

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