UVA10725 Triangular Square

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=19&page=show_problem&problem=1666 [PDF](https://uva.onlinejudge.org/external/107/p10725.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10725/0634f1e07e69a74b0b2f1c4fc746f4d79181332c.png)

Input Format

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

Output Format

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