UVA11886 Infinite Dictionaries

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=226&page=show_problem&problem=3008 [PDF](https://uva.onlinejudge.org/external/118/p11886.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11886/8172cc1cad5f7f477e958c002538db369dbcd260.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11886/84374ef69285fd87392ae338a3bb413581c9d20e.png)

Output Format

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