UVA890 Maze (II)

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=10&page=show_problem&problem=831 [PDF](https://uva.onlinejudge.org/external/8/p890.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA890/58bb0fe307dbdd79c733893590e4a0093a063548.png)

Input Format

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

Output Format

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