求第 $k$ 小角度可以二分。二分一个角度 $\theta$,我们需要检查有多少对点的连线角度在区间 $[0,\theta)$ 中,这其实是一个二维偏序,排序加树状数组可以在 $O(n\log n)$ 时间解决。总时间复杂度 $O(n\log n\log (1/\epsilon))$。
QOJ.ac
QOJ
As we are currently experiencing an overwhelming number of web requests for fetching user submissions, we have temporarily disabled the full submissions list. You must now be logged in to view submissions.
Discussion #140 for Problem #7229. Lines
Type: Editorial
Status: Open
Posted by: jiangly
Posted at: 2025-12-12 23:30:47
Last updated: 2025-12-12 23:30:50
题解
Comments
No comments yet.