UVA11818 Game --- Mouse and Cheese

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=226&page=show_problem&problem=2918 [PDF](https://uva.onlinejudge.org/external/118/p11818.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11818/3f68e759d197555b4f7f6e4dd12de7f59240cac6.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11818/333382123c6407142472752f5772719284317f60.png)