UVA11445 Water Tanks EXTREME

Description

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

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11445/861d3e39df8987646e780bcc79b515ac42a0f844.png)

Output Format

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