Time limit
1000 ms
Memory limit
262144 kB
Source
Codeforces Beta Round #7
Tags
hashing strings *2200
Editorial
Announcement
Descriptions:

Palindrome Degree

CodeForces - 7D