UVA11139 Counting Quadrilaterals

Description

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

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11139/980f5708015d9334f8ecff3085c6e4bbf42b940f.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11139/5a71c45f9219188c5df2b68d848e0a471c651ec4.png)