UVA711 Dividing up

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=9&page=show_problem&problem=652 [PDF](https://uva.onlinejudge.org/external/7/p711.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA711/8e79b2c9438f3a6009f37609af6d11b66443a77c.png)

Input Format

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

Output Format

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