In this problem [problem:1857/F], I used a binary search to solve this. I wrote the code in Go, but it is giving TLE. I'm not very experienced with Go, so I'd really appreciate it if someone could explain why this is happening.
Link to submission: [problem:222520517]
Thanks for the help in advance!