cf/mirror

Palindrome pairs

CF
159D1500· specialist3s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
aa
Output
1
Sample 2of 3
Input
aaa
Output
5
Sample 3of 3
Input
abacaba
Output
36
159D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)