A few days ago I read this problem, it seem like a easy geometry problem about optimization over the angles, so I used ternary search to rotate the point about the origin, like the picture show, but I got WA, so, any idea about what's my error? ****
Thank you very much.