UVA751 Triangle War

Description

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

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA751/5da95d8b654e9a445453a8ef854142af3c454214.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA751/1edadcb4db257a1e3ab3dacc1319707107d14e74.png)