UVA10890 Maze

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=20&page=show_problem&problem=1831 [PDF](https://uva.onlinejudge.org/external/108/p10890.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10890/c460a5e1fa29f85dc712795b8db6e2b985c6d9a5.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10890/947f69b165e6608bc9ad2a3f8a7f42e472ad835b.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10890/5255558db7ac9156c8c795ccb69420f94b7aed14.png)