UVA12331 Triangles and Quadrangle

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=278&page=show_problem&problem=3753 [PDF](https://uva.onlinejudge.org/external/123/p12331.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12331/1becd7dd8ffadd34dd9b212cfa0a29bf6fb5a222.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12331/338ab08b982d087c037bfde66fea6e11c4b4e709.png)

Output Format

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