UVA979 The Abominable Triangleman

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=11&page=show_problem&problem=920 [PDF](https://uva.onlinejudge.org/external/9/p979.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA979/8a9206edbfd0bf7cc7e7b7cf3f3c1ec013d96596.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA979/8c6c4ca44a69b0d9c97049f26d5a4fdce8f97c29.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA979/02a448e7409579d38116515261118ebef586d432.png)