UVA12165 Triangle Hazard

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=243&page=show_problem&problem=3317 [PDF](https://uva.onlinejudge.org/external/121/p12165.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12165/da79c0cfeaf961dd0b94d6e3591e4f4eaae8e361.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12165/5cfc7eec06d9906b3e4e54684500ca79503198aa.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12165/9ee0f00cd81769b497eb5ddd9c37f4e7244b18df.png)