摘要:
1 #include 2 #include 3 #include 4 #include 5 6 using namespace std; 7 8 #define eps 1e-8 9 #define zero(x) (((x)>0?(x):-(x)) 0 ? 1 : -1) : (ret > 0 ? 1 : -1);26 }27 void _graham(int n, point* p, int& s, point* ch){28 int i, k = 0;29 for (p1 = p2 = p[0], i = 1; ieps || (zero(p1.y - p[i]... 阅读全文