UVA13040 Flyovers of Khakha

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=866&page=show_problem&problem=4938 [PDF](https://uva.onlinejudge.org/external/130/p13040.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13040/62e6ef9cd8959e767607e08327a92e92305c476d.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13040/6acf2bd53ec4a44ddf1600a80e1024286ddb0468.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13040/03af07b703a4b3bbdcc7c5974cdffca7b7d2850c.png)