UVA578 Polygon Puzzler

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=7&page=show_problem&problem=519 [PDF](https://uva.onlinejudge.org/external/5/p578.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA578/d0a906ba2370776b584e7f568a81e168499e4684.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA578/98a9035fc0dae46583e6dd5e3d98b5e99aad8c58.png)

Output Format

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