Need help on why wrong answer on my submission 34628481

Please see my submission and help, cant find the mistake,
slb and sla are variables for number of kicks left,
a and b are for counting successful kicks.

https://www.codechef.com/viewsolution/34628481

no answer on test case

1
4
11111110

1 Like

removed a==b still wrong answer
https://www.codechef.com/viewsolution/34633728

check
4
10010001

1 Like

I have made some changes to your solution. Have a look at it and try to understand what was the mistake you made. Still, if you have any questions, feel free to ask. Hope this helps :slight_smile:

1 Like

https://www.codechef.com/viewsolution/34637395

1 Like

Thanks guys solved