WA in PSHOT

Problem link : https://www.codechef.com/problems/PSHOT
My solution : https://www.codechef.com/viewsolution/49451022
I have tried many test cases and it always matched with the output but I am still getting WA .
Can somebody tell me why this is not working ??

Consider the test input:

1
5
1100110100

code giving 10 as output isn’t that correct

No :slight_smile:

what would the output and how can you help

  1. 9
  2. By giving you test testcase above.

ok now i get it thanks for your help

1 Like