UVA10372 Leaps Tall Buildings (in a single bound)

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=15&page=show_problem&problem=1313 [PDF](https://uva.onlinejudge.org/external/103/p10372.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10372/82f4e473d23dc0d73220cbba5ea7241cbfc09031.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10372/389b0bbce92297251c93b2a8a154550c0eb85a0f.png)

Output Format

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