UVA10337 Flight Planner

Description

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

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10337/8f7841defc5d6e86ea851692ea4fea0ded479c5e.png)

Output Format

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