can someone help me in my solution CodeChef: Practical coding for everyone
How is your code working if i give you A>B ?
Like, for k=10, A=10 and B=2?
You are printing -9 for this input.
Input
1
10 10 2
Your Output
-9
Correct Output
1 (Candle 1 is eligible)
I think I considered 1 ≤ A, B ≤ k as B is always greater than A.
Thats not guaranteed in input. A,B != A<=B