QOJ.ac

QOJ

Type: Editorial

Status: Open

Posted by: jiangly

Posted at:

Last updated:

Back to Problem

题解

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

Comments

No comments yet.