UVA10176 Ocean Deep! - Make it shallow!!

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=13&page=show_problem&problem=1117 [PDF](https://uva.onlinejudge.org/external/101/p10176.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10176/d0412ec858da2d5c80247e1ed64c4692b222be67.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10176/6b9ff9d1124b6937d78a0343e6b4d4f6bdeafaba.png)