UVA12094 Battle of the Triangle

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=242&page=show_problem&problem=3246 [PDF](https://uva.onlinejudge.org/external/120/p12094.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12094/9822eb3e0e196c5c4341375d2bbb20a74cb6eacd.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12094/610e676e2b04ac0b90cbd95492bdc232143a4e99.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12094/0955240415393658bb53bafda7123c2f8e60e163.png)