UVA12681 Decoding the Hallway

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=602&page=show_problem&problem=4419 [PDF](https://uva.onlinejudge.org/external/126/p12681.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12681/1e710c29fed5ca0cf58b73b673ecd41417be3b0d.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12681/09830be7f68b2fdc480b7aa2dc96c5e38ab4c1b7.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12681/8eca584f6d2964b1a70f950a03c4fd6bb2f2e005.png)