Number of Palindrome
给你一个字符串,求这个串中不同回文子串的个数。
Input每组 case 给一个字符串 S。串长 < 100000。
Output输出一个整数,代表这个串中不同回文子串的个数。
Sample Input 1:
aaaaSample Output 1:
4Sample Input 2:
ababSample Output 2:
4Sample Input 3:
abcdSample Output 3:
4Submit solution
Coming laterThe grading service will be connected in a later migration step. You can inspect the task and your previous results now.