UVA11539 Another Word Game

Description

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

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11539/6e3f664c55ac700f2f43443ab3137bd16c0cd657.png)

Output Format

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