UVA10255 The knight's Tour

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=14&page=show_problem&problem=1196 [PDF](https://uva.onlinejudge.org/external/102/p10255.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10255/94b6bb38130c77e5edf68e617d976fa6645f3cda.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10255/791f13259320e769f0766d3d323c5d46906ee281.png)

Output Format

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