UVA11817 Tunnelling the Earth

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=226&page=show_problem&problem=2917 [PDF](https://uva.onlinejudge.org/external/118/p11817.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11817/9d6099ea9998882fe208dedb37984e06362a1a2a.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11817/1bf841bff3dee123b0ffa601645111649f2e92a0.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11817/823bbe195674366cb1f2685ae9125c257d5c3293.png)