UVA10878 Decode the tape

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=20&page=show_problem&problem=1819 [PDF](https://uva.onlinejudge.org/external/108/p10878.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10878/1f1dd8e932cd87dc9a3c4558778beb35f6acebaa.png)

Input Format

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

Output Format

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