UVA11016 Square Counting

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=22&page=show_problem&problem=1957 [PDF](https://uva.onlinejudge.org/external/110/p11016.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11016/6981b6a9177e3a713db9eb6e31ac862e8a5b9660.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11016/8a84f1c2c607f7f05d72c0d2485964bcb12b17ab.png)

Output Format

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