UVA13198 Knight on Wide Board

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=871&page=show_problem&problem=5121 [PDF](https://uva.onlinejudge.org/external/131/p13198.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13198/9ef040efa8979977539e2c5d81196a4296a8af78.png)

Input Format

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

Output Format

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