UVA11465 Count the Polygons

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=26&page=show_problem&problem=2460 [PDF](https://uva.onlinejudge.org/external/114/p11465.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11465/64964a090648f824e264b8f26b8feb03276cc463.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11465/09e94fc651c54b9eec82eb08f46ac6b0315e030a.png)

Output Format

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