#P2696. 第3题-字符串权值

第3题-字符串权值

题目内容

小美定义一个字符串的权值为:其长度为3的回文子序列数量。例如,"abcaabca"的权值为22,因为包含 两个回文子序列"abaaba"和"acaaca"。