Which test cases i'm missing?

https://www.codechef.com/problems/BOWLERS

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

help me where i’m wrong

for test case o = b = a = 1
your code is giving -1 but it is not the case

1 Like

@nisarg_1001 thanks for your help