Wanted to discuss how this solution had passed some inputs

My code solution is here CodeChef: Practical coding for everyone

I could see it worked for most of inputs, but with below input it give me negative output, how judging tool show solution worked? is it expected because in problem they said we need to output positive integer

If we give input A and B A=1000 B=1234 then output = -233

The constraints say that A>B, so an input like the one you’ve given will not be tested by the judge.

1 Like