What is difference between these two codes/

Solution accepted : https://www.codechef.com/viewsolution/23105197

Solution rejected : https://www.codechef.com/viewsolution/23105144

make it
else if(x+0.5>y)
and it will work… this is the difference

1 Like