UVA10733 The Colored Cubes

Description

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

Input Format

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

Output Format

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