UVA990 Diving for Gold

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=11&page=show_problem&problem=931 [PDF](https://uva.onlinejudge.org/external/9/p990.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA990/a5cdae59f08ac56b84a124604f33f69381ff9d53.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA990/7b52ff17df9176bfc3e8f3556fbe78eb2668618c.png)

Output Format

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