UVA12051 Mazes in Higher Dimensions

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=242&page=show_problem&problem=3203 [PDF](https://uva.onlinejudge.org/external/120/p12051.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12051/7a1f4d73fb2247353aa51e0ec4195da03b6df5db.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12051/479d7094cb201bebed3b9bea37c2dbb17acb8b06.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12051/6ce4bb0255e043b6a24e18ab56c88e798b6ad969.png)