UVA10037 Bridge

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=12&page=show_problem&problem=978 [PDF](https://uva.onlinejudge.org/external/100/p10037.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10037/a91d7e74df008ae6c59f3cbe56d9ac8a92dbee7a.png)

Input Format

N/A

Output Format

N/A