Time limit
4000 ms
Memory limit
262144 kB
Source
Codecraft-18 and Codeforces Round #458 (Div. 1 + Div. 2, combined)
Tags
bitmasks data structures divide and conquer trees *2400
Editorial
Announcement (en) Tutorial (en)
Descriptions:

Palindromes in a Tree

CodeForces - 914E