UVA10973 Triangle Counting

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=21&page=show_problem&problem=1914 [PDF](https://uva.onlinejudge.org/external/109/p10973.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10973/b5a10872fa4e27e775d0e888af977197838af8a4.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10973/21dbfe5a835f5691ebaa2fbea5ad657c2ca1351f.png)

Output Format

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