UVA10675 Revenge of Faucet Flow

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=18&page=show_problem&problem=1616 [PDF](https://uva.onlinejudge.org/external/106/p10675.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10675/a30a2b27e564980da99e23ef999a626d0e24964d.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10675/7175c9429152d4620467ff9662d2ae3d40e12d3c.png)

Output Format

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