UVA10384 推门游戏 The Wall Pushers

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=15&page=show_problem&problem=1325 [PDF](https://uva.onlinejudge.org/external/103/p10384.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10384/8b74f55a347947c83ecc6bdb87f3f1ebf49b0c28.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10384/1565227b5795334f37f90879c4ca25469beeb207.png)