UVA11407 Squares

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=26&page=show_problem&problem=2402 [PDF](https://uva.onlinejudge.org/external/114/p11407.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11407/d4b6a63df7714eab868d357f390913c9be34758e.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11407/8368927c66eaf1c7517781eef1e3f4eba48cea70.png)