UVA10241 Semi-triangular and also Square

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=14&page=show_problem&problem=1182 [PDF](https://uva.onlinejudge.org/external/102/p10241.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10241/a385dbaaa255fb094598b256feed1a33d979b4e7.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10241/3d5daf470cc383ece05951bdc49e2f24ba1dc117.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10241/6fc68da5539d2228d9057dd7f9057adbcaf79ff4.png)