Time limit
3000 ms
Memory limit
524288 kB
Source
CODE FESTIVAL 2017 qual C
Descriptions:

Yet Another Palindrome Partitioning

AtCoder - 3591