MSUBSTR using palindromic tree
I was trying to solve this problem using the palindromic tree. But I couldn't. Can someone help me?
Codeforces Round 946 Solution Discussion