UVA11187 Water Crisis

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=23&page=show_problem&problem=2128 [PDF](https://uva.onlinejudge.org/external/111/p11187.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11187/b7acd830256cfba37ffd64a226e3254766ecf747.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11187/865faca4b2efa4f8a0eb24d69d69b974d6f04cb6.png)

Output Format

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