UVA11404 Palindromic Subsequence

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=26&page=show_problem&problem=2399 [PDF](https://uva.onlinejudge.org/external/114/p11404.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11404/5a2f90597be3614b65fba8ea886ef3720ad90e24.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11404/5d529bca5a84ba4c913ad766ed8b0f427f7ca32d.png)

Output Format

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