UVA102 Ecological Bin Packing

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=38 [PDF](https://uva.onlinejudge.org/external/1/p102.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA102/ef84892469f793327bfb4a3ea04e4237b1761a6d.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA102/249702f9f5f1e91446cb32d9b3ad6a7eca7264f5.png)