UVA598 Bundling Newspapers

Description

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

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA598/1146380303c0e1ac9f12bc80e15e2685351f727d.png)