UVA12651 Triangles

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=602&page=show_problem&problem=4380 [PDF](https://uva.onlinejudge.org/external/126/p12651.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12651/cca65ff28c18c0a270605d8f726baf01777602b4.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12651/3693ddd05aa538388dd7208f054e09027ab8621f.png)