UVA10011 Where Can You Hide?

Description

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

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10011/67a78c7fee2ede32371a5615bf55367ec4700059.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10011/53ad9d02ee993a2c33deb87df0ef589afa7d93da.png)