UVA11055 Homogeneous squares

Description

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

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11055/0164cead9cce0158c8d72330faa6c89d936f8974.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11055/40bbb8a85ad525d3ab2b2914dfa40644d020f7a3.png)