UVA10331 The Flyover Construction

Description

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

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10331/63401378b4f53d86fdc411a2531590eb386eba5d.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10331/33fac7c931992da926b97ed7361c5f9b1de355f9.png)