UVA10979 How Many Triangles?

Description

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

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10979/3a09a240adc7fb7f39a15d5f14da370e2e5515f6.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10979/36916c4b81fc7c5f604745453d742c489083be37.png)