UVA11866 Triangle

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=226&page=show_problem&problem=2966 [PDF](https://uva.onlinejudge.org/external/118/p11866.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11866/90833d54605eee29c0d1ebdae926b89bd3bc7003.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11866/212295cb92468200a79df63ac54e60a9cd298f65.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11866/39c53de85e9b533890eeeaac912ad65233d85508.png)