UVA12174 Shuffle的播放记录 Shuffle

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=243&page=show_problem&problem=3326 [PDF](https://uva.onlinejudge.org/external/121/p12174.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12174/ce9615ec27a5a3709f68f8fd5f56ddafa79b70df.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12174/3d302db981984764cf030960c504243976501257.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12174/42376b380d6f1db7f9b064450474cceae02a8d3a.png)