UVA11413 Fill the Containers

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=26&page=show_problem&problem=2408 [PDF](https://uva.onlinejudge.org/external/114/p11413.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11413/f225ec10e966258f32997029a6c42ed6e20ab01e.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11413/813f8573d3aa7e26c3b3091a48d136a60636f4ab.png)

Output Format

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