UVA744 Triangular Museum

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=9&page=show_problem&problem=685 [PDF](https://uva.onlinejudge.org/external/7/p744.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA744/d613416a9c6387f8d086a8f0498488f4f3a2b7a1.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA744/481c79cf601000bf9aab3fb80b9f7fde23254826.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA744/562ee146012407f83c4718d54f08722a4158451e.png)