UVA203 Running Lights Visibility Calculator

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=4&page=show_problem&problem=139 [PDF](https://uva.onlinejudge.org/external/2/p203.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA203/995231671623970c13027478d6b8a31a17414271.png)

Input Format

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

Output Format

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