UVA281 Rubik's Cube

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=4&page=show_problem&problem=217 [PDF](https://uva.onlinejudge.org/external/2/p281.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA281/b960ed60ecd550a4768e842427a074b25b358463.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA281/6dc264e16ba5658f4ee789d6f5ba63b4732aea01.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA281/f87f37c8af49fd007be8b28afee9ef469329ab47.png)