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

Can someone please find the reason why the solution is giving WA?
[GUESSNUM Problem - CodeChef]
[CodeChef: Practical coding for everyone]

Please help!

for test case ->1
1 2
expected output 1
1
your output 0
hope it helps

1 Like

Thanks!