UVA256 Quirksome Squares

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=4&page=show_problem&problem=192 [PDF](https://uva.onlinejudge.org/external/2/p256.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA256/d7d37ce696567bf5c8a4472ae6fe16289cb708d2.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA256/1f8b99253cf3d6e3413a66f2d2f0fed656821714.png)