UVA10741 Magic Cube

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=19&page=show_problem&problem=1682 [PDF](https://uva.onlinejudge.org/external/107/p10741.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10741/6e49e99238614175a2c5261e081b28ddaec4f8cb.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10741/6293ee791f420303175e9a0d481f206747c9cc27.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10741/01f17f145cbd0ab01ce86273f28babeb80ca5256.png)