UVA11106 Rectilinear Polygon

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=23&page=show_problem&problem=2047 [PDF](https://uva.onlinejudge.org/external/111/p11106.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11106/f7d3a818863ceed6f4ec4492a324e6041cb57713.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11106/40eac18dcef98f3d39d6b883f18333419f96ace2.png)

Output Format

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