UVA11906 Knight in a War Grid

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=229&page=show_problem&problem=3057 [PDF](https://uva.onlinejudge.org/external/119/p11906.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11906/3da28ae9f7ced46bd422739d5050c6539f719476.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11906/88e42713392b7f8f56537b7fe2e1b9c0a35692dd.png)