UVA559 Squares (II)

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=7&page=show_problem&problem=500 [PDF](https://uva.onlinejudge.org/external/5/p559.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA559/08922a1bf49c1534e0b4ece487a139d82c3b31f9.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA559/96fe37be0bd4418b65563add84e31c86225f7547.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA559/20ed3f29c3110d58be80cf154664f75cb94c1832.png)