UVA929 Number Maze

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=11&page=show_problem&problem=870 [PDF](https://uva.onlinejudge.org/external/9/p929.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA929/fa40494739c67a520087fb89c9fe939da3152a96.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA929/39e0446031472be68e8888cf492c7b78d24e9c19.png)