UVA10963 The Swallowing Ground

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=21&page=show_problem&problem=1904 [PDF](https://uva.onlinejudge.org/external/109/p10963.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10963/31b7fe570c028042f75c7a163aa057bb4b6673bc.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10963/80b9f9182597be1044774062454548d858929dc6.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10963/39cac2cc15dac09ac8ea510a7837ebe4e75dc4d8.png)