UVA10867 Cutting a Polygon

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=20&page=show_problem&problem=1808 [PDF](https://uva.onlinejudge.org/external/108/p10867.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10867/ecd67092c4524f803d7d884eac9710916404ea03.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10867/07c73da48444e00bddb8407511719f4f93e2de68.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10867/1a5395300f5eb3ed683de1b89f4388c044fcc9c8.png)