UVA10504 Hidden squares

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=17&page=show_problem&problem=1445 [PDF](https://uva.onlinejudge.org/external/105/p10504.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10504/6df470fae914018773df6cd1607ba760697a5a7d.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10504/807f3342ca59ad84245d109d8fd4b1445df048f5.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10504/68c6060ca4d780ed9a152215fb73a651c99a001d.png)