UVA11050 Construct the wall maze

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=22&page=show_problem&problem=1991 [PDF](https://uva.onlinejudge.org/external/110/p11050.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11050/edd645ead71812ebc99df4c39ba66d5e78f1c4bc.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11050/798a7fcdafeca30420f6a6d0e5c990144b4266c1.png)

Output Format

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