UVA12137 Puzzles of Triangles

Description

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

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12137/7aec5c503adf9f020910d7d5f3153f61193dc18c.png)