UVA439 骑士的移动 Knight Moves

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=6&page=show_problem&problem=380 [PDF](https://uva.onlinejudge.org/external/4/p439.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA439/49281f2a839995de267463a506fc7b04652bcf4a.png)

Input Format

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

Output Format

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