UVA11579 Triangle Trouble

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=27&page=show_problem&problem=2626 [PDF](https://uva.onlinejudge.org/external/115/p11579.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11579/4db13d3b37e214db60d6ed4c0efa08f163d7e0bc.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11579/046a9b2e2f04894bc43e6e94df34080a1da40d4d.png)

Output Format

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