摘要:
极坐标排序注意atan2(y,x)的使用方法,y在前,x在后。返回X轴正方向到原点到(x,y)点的射线的到角。View Code #include <iostream>#include <cstdlib>#include <cstring>#include <cstdio>#include <cmath>#include <algorithm>using namespace std;#define maxn 55#define pi acos(-1)struct Point{ int x, y;} point[maxn]; 阅读全文
posted @ 2011-09-02 09:12
undefined2024
阅读(729)
评论(0)
推荐(0)

浙公网安备 33010602011771号