Problem STONES

Problem-:http://www.codechef.com/status/STONES/

My solution-:http://www.codechef.com/viewsolution/2402270

It’s passing all the test cases,can anyone help me out where it is failing ??

try this case…

1
a
aaa

ans should be 3…ur code is giving ans as 1…!!!

the 3rd case is given to confuse you…hope this helps…:slight_smile:

1 Like

Yup thanks :slight_smile:

glad could help…:slight_smile: