UVA616 Coconuts, Revisited

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=8&page=show_problem&problem=557 [PDF](https://uva.onlinejudge.org/external/6/p616.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA616/a4dcbd462805ff250019039e6c717f920df9c168.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA616/288cb5a8bac173d9467e44eeb79917eb70c5d52d.png)