UVA10872 Triangles

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=20&page=show_problem&problem=1813 [PDF](https://uva.onlinejudge.org/external/108/p10872.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10872/457d9c651ce74f21a639656dfc3ec56c1fd44f41.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10872/190b2104cd17e3140021d4b77c8ce43f8f884713.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10872/38786c0879d76f36cb6ce01357bf29c80586b749.png)