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 ??
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…
Yup thanks
glad could help…