Could you please help me out in figuring out why my solution did not get accepted, although I applied the same logic as given in the editorial? It’s just I did not take max(0, sqrt(u*u - 2 * a * s)). Why did they take max with 0?
This is the link to my solution → CodeChef: Practical coding for everyone