This is regarding problem Palindromic Tree from Programmers Army Monthly Contest - Strings. The following solutions are exactly the same (and completely illogical afaiu, should not have passed the test cases.)
Well that makes it all clear then
Even i think that solution is Completely illogical and even I don’t know that weather the solution available online or not, sorry for weak testcases but i tried my best.
it was available online
i doubt if this is even a problem for short contests
XD… How the hell were they expecting that people will solve hardest problem of the long challenge in 2hrs.