UVA10751 Chessboard

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=19&page=show_problem&problem=1692 [PDF](https://uva.onlinejudge.org/external/107/p10751.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10751/ac984d50d03597a287f9aa599ce1511b508cb609.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10751/040f47c22f495777aafb52ec40685e34063eacde.png)