UVA636 Squares (III)

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=8&page=show_problem&problem=577 [PDF](https://uva.onlinejudge.org/external/6/p636.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA636/082add2d43bc26287fe9a3e1383ba0d59c755e7d.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA636/9362a2b6ec1c20eabfeccd2123c8cdc46859ae51.png)

Output Format

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