UVA12826 Incomplete Chessboard

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=861&page=show_problem&problem=4691 [PDF](https://uva.onlinejudge.org/external/128/p12826.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12826/a0c278c63549d7a77403434d1dbc0d9856a78dc8.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12826/2466097ac080ecf6fbbb0315ee019766d5ea9b7e.png)