UVA11989 Cake Cutting

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=229&page=show_problem&problem=3140 [PDF](https://uva.onlinejudge.org/external/119/p11989.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11989/78d7e2623f5cb5cef5b35fdf005ac23b9e0b2a1c.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11989/77ff1056a49241697375157b64fd55cc156d67da.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11989/08cc78b16a038ab1312783a83b02d450945e2cad.png)