UVA11141 Sugar Cubes

Description

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

Input Format

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

Output Format

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