UVA11520 Fill the Square

Description

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

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11520/61da696b83ebe550b5c5a9c278d089927acd5de5.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11520/50d3926cc584207be8e24f18b5049ec87b92a195.png)