UVA129 困难的串 Krypton Factor

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=65 [PDF](https://uva.onlinejudge.org/external/1/p129.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA129/acf4a8193efdffb3da55bab10c0c0b1353f2dc09.png)

Input Format

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

Output Format

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