Time limit
5000 ms
Memory limit
262144 kB
Source
CROC-MBTU 2012, Elimination Round (ACM-ICPC)
Tags
dp hashing strings *1900
Editorial
Announcement Tutorial #1 (en) Tutorial #2 (ru)
Descriptions:

Queries for Number of Palindromes

CodeForces - 245H