UVA10177 (2/3/4)-D Sqr/Rects/Cubes/Boxes?

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=13&page=show_problem&problem=1118 [PDF](https://uva.onlinejudge.org/external/101/p10177.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10177/e41fc84c62ac8317a90fe4c0dc507bbd44415101.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10177/93e6474ae21e58ce3f837c3640631d6dc8c3e995.png)

Output Format

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