UVA10060 A hole to catch a man

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=12&page=show_problem&problem=1001 [PDF](https://uva.onlinejudge.org/external/100/p10060.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10060/cc4a00628c21572b57f7c10488a9bd73316947fc.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10060/18393ec3fef7d0679b6b189312c00270036ce2df.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10060/4fab1ed8ad20178ad16c9f04c60b32ef3cdbff49.png)