UVA11137 Ingenuous Cubrency

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=23&page=show_problem&problem=2078 [PDF](https://uva.onlinejudge.org/external/111/p11137.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11137/1d6be845b1ad218504f79b963bd64bd4f388a863.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11137/8bdee84b2f0ec8c81ec280e8b33d9068f21c6d20.png)

Output Format

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