UVA12612 Cube Killer

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=602&page=show_problem&problem=4290 [PDF](https://uva.onlinejudge.org/external/126/p12612.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12612/61bbfa88007e612f39fd0b9f675034d791eb1321.png)

Input Format

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

Output Format

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