Problem B: 统计回文子串
          Memory Limit:32 MB
          Time Limit:1.000 S
         
      
      
        
          Judge Style:Text Compare
          Creator:
      
      
          Submit:38
          Solved:11
      
Description
现在给你一个字符串S,请你计算S中有多少子串是回文串。
    Input
输入包含多组测试数据。每组输入是一个非空字符串,长度不超过5000。
      Output
对于每组输入,输出回文子串的个数。
        Sample Input Copy
aba
aa
          Sample Output Copy
4
3