UVA866 Intersecting Line Segments

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=10&page=show_problem&problem=807 [PDF](https://uva.onlinejudge.org/external/8/p866.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA866/11803bd332dcaea9172c83915656daa19c17ae4f.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA866/070e2e13237feb479d87f227dfaaf593e14b83be.png)

Output Format

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