UVA11564 Just A Few More Triangles!

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=27&page=show_problem&problem=2600 [PDF](https://uva.onlinejudge.org/external/115/p11564.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11564/e2dac11b0cbcbfd6c2173f6d50262b3ef76e6f30.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11564/8638b806c8094e7ddc29f8307e2620df6056f9c9.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11564/20533057e34c09b3b3866c8ae5fc429ef0998551.png)