UVA11923 Roundabout

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=229&page=show_problem&problem=3074 [PDF](https://uva.onlinejudge.org/external/119/p11923.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11923/d1a1eb467255067099958c36e68d511af71658e5.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11923/5efaee312844cc72c707e51a4837aef50b685745.png)