UVA705 Slash Maze

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=9&page=show_problem&problem=646 [PDF](https://uva.onlinejudge.org/external/7/p705.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA705/b63b55f55c15b395e058e1f81cceaf8fbffe48b5.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA705/7191b7a07510c3bddeb0557b432791268e625a57.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA705/0f50e492d70b99993bf6be76cee1af2270a27660.png)