UVA11008 Antimatter Ray Clearcutting

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=22&page=show_problem&problem=1949 [PDF](https://uva.onlinejudge.org/external/110/p11008.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11008/9bce6703cd7f8e03427dc6d550594aab061279a9.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11008/7a341d350398479547a51b1b4c4152f51823e707.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11008/7072afbba973016e8d4c0f1516f365f7d32db173.png)