UVA12473 Common Palindrome

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=279&page=show_problem&problem=3917 [PDF](https://uva.onlinejudge.org/external/124/p12473.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12473/03dcb0cb15fc5c85526abed389ff698cc5dd622a.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12473/90779b95375f9781c07407d7408379977c884839.png)

Output Format

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