WA in ALIENIN

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

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

What is wrong ?
@everule1 @galencolin @akshitm16

same issue with me , take upper bound to 2*109 and try again.

Refer here .

It is 1e10

https://www.codechef.com/viewsolution/37317515
Didn’t worked

I think your fun program is wrong , bcz binary search seems correct .

https://www.codechef.com/viewsolution/37318274” check my solution and figure out where u did wrong .

1 Like

Your valid function worked
https://www.codechef.com/viewsolution/37322280

Got my mistake. I forgot to write else

else if(in+val>arr[i] && in+val<=arr[i]+d)
        in=in+val;
1 Like

I have tried many times with different higher bounds,but couldnt find where its going wrong

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

please someone help me out with this code(THE CODE IS IN JAVA)