UVA11451 Water restrictions

Description

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

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11451/28755b43da4242d85c8906a71bb88b8b7b1c9d98.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11451/820bbb34e3e7e39be4b78cbd5a51e7412f1ba234.png)