UVA10129 单词 Play on Words

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=13&page=show_problem&problem=1070 [PDF](https://uva.onlinejudge.org/external/101/p10129.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10129/93a453b0255d1505b75b39312565cf987d605495.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10129/8e2bced25045f0d2f80ecd010213382429563073.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10129/85df7fb79230ef834cfc099d6f0c0ee3fbdfce5a.png)