UVA11556 Best Compression Ever

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=27&page=show_problem&problem=2592 [PDF](https://uva.onlinejudge.org/external/115/p11556.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11556/fc98151c836ed521d8e19c35e1192455a3403641.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11556/2abed787868569a44bade31424158427ede1abba.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11556/67f07bf5351fde188e170ff788ebd8c63aeddee7.png)