I’m a little ashamed to ask for such a simple problem, anyway here’s my question: is it even possible to earn AC at IMMERSED, using binary search in Java?
I either get TLE or WA. In the latter case, I suppose it’s because I don’t refine the solution enough.
The code is so simple! I also looked around for hints, and I found C/C# code almost identical to the mine that gets AC.
I also “borrowed” Egor’s InputReader, in the attempt to squeeze the needed performances… Without any luck!
Can anybody point me in the right direction, please?
Here’s my code: https://ideone.com/4yUx2Y