UVA12492 Rubik Cycle

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=279&page=show_problem&problem=3936 [PDF](https://uva.onlinejudge.org/external/124/p12492.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12492/f2cf9b8fcc760e078c71a0b5742a6310eb54f337.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12492/64cc18de56a482f06c2d030fa4a14b99adf13df6.png)