As there was no blog for today's contest so I created this one for discussion of problems. Can anybody tell me the logic of question Dreamplay and the String Game. I tried to apply Z-algorithm to count the number of occurrences of string s in p and then some basic logic of game theory but got only 10 points.
I am unable to get logic from Editorial of the contest. Please help me.