QOJ.ac

QOJ

Type: Editorial

Status: Open

Posted by: jiangly

Posted at: 2026-04-09 18:04:19

Last updated: 2026-04-09 18:04:24

Back to Problem

题解

从凸包上的一条边开始,每次沿当前点逆时针旋转直到碰到第一个点,然后从这个点继续,这样每次都能保证剩下的所有点都在当前直线左侧,因此都是逆时针方向。时间复杂度 $O(N^2)$。

Comments

No comments yet.