UVA868 Numerical Maze

Description

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

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA868/7d2864c3badef9c5caff158178de64c4fc59f3ae.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA868/1c6c7fa55ee0622315134a68ff1d45b40ddadf17.png)