UVA741 Burrows Wheeler Decoder

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=9&page=show_problem&problem=682 [PDF](https://uva.onlinejudge.org/external/7/p741.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA741/73a3c975ac6d86fc89bc0a767b31cb13116b80e5.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA741/76fb6a77e370c9482581e2008badf2b1c3c952b7.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA741/196afc2bbff096c36606234b0560ca52e9ab5774.png)