UVA527 The partition of a cake

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=7&page=show_problem&problem=468 [PDF](https://uva.onlinejudge.org/external/5/p527.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA527/f1454854266ee5ee50d8143b80e7a37ff7420411.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA527/7ecb491d934d1be50d9255dd7a6238e730d88b04.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA527/3b03952f9f0be479150cd7b6fc10a1c9ffb560be.png)