UVA10477 The Hybrid Knight

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=16&page=show_problem&problem=1418 [PDF](https://uva.onlinejudge.org/external/104/p10477.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10477/6558563e17c50f71da147fdbc9636ac0fd17de79.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10477/73f6de3f5e94f570c0a281e252b7a62215068223.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10477/91945b30e6210781f4a41133b3e3fe9b57844270.png)