DSA Week 2 Problem in Penalty ShootOut-II [PSHOT]

Can anyone help me out…why my code is giving WA for this problem Contest Page | CodeChef
My code is… Solution: 42965030 | CodeChef
I checked the successfully submitted codes too and I think my code and logic seems correct.

Consider the test input:

1
4
10101000
2 Likes

Thanks bro…I got the problem in my code…corrected it and got AC.

1 Like