给出一个由小写字母组成的字符串 ,问有多少由小写字母构成的字条串 ,满足:
一个字符串 。
输出答案 。
abba
650
Only words of the form xyyx are palindromically equivalent to abba, where x and y are distinct letters. The English alphabet contains letters, consequently there are such words in total.
xyyx
x
y
对于 的数据, 长度 。