一定要注意 总的点数 n<= 2 时 graham不适用。还要注意 graham找到凸包后 注意 top <=2 时面积为0。View Code #include<stdio.h>#include<string.h>#include<math.h>#include<algorithm>using namespace std;struct point{ double x, y;}p[10003];double det(double x1, double y1, double x2, double y2){ return x1 * y2     Read More
posted @ 2012-09-03 15:49
To be an ACMan
Views(318)
Comments(0)
Diggs(0)
        
                    
                
浙公网安备 33010602011771号