I was trying problem C002 from recently concluded Code It Up and could not see how to solve it. I have seen a couple of “Accepted” solutions but they all fail on the below test case:
1
2
we wer
wer
Submissions upon which I tested the above test case:
19056378, 19056865, 19060927, 19062256(my own accepted code :P)
EDIT: Problem link: CodeChef: Practical coding for everyone