Problem Link: PALPALS Problem - CodeChef
Condition 1:
“Each character of the whole string belongs to exactly one substring.”
If this above statement is true then how explanation is correct in
test case → xyxyxy
Example case 3: The string “xyxyxy” is already a Palpal string, since it can be divided into “xyx” and “yxy”.
In the case of “xyx” and “yxy”, it violates the1st condition(because of x and y is used in both substrings while they must be in exactly one), so how “xyx” and “yxy” is a possible answer?
It should have been xxx and yyy .
I spent 2 hrs on this in the contest and now not getting any reply. Really a Bad contest.