#include
using namespace std;
const int MAX=1000005;
typedef struct point
{
double x;
double y;
point(double a=0,double b=0) :x(a),y(b) {}
double operator *(point b)
{
return x*b.y-y*b.x;
}
}P;
int n;
P po[MAX];
double cen_x,cen_y;
void centerGra()//可算凹凸多边形
{
double area=0;
for(int i=0;i>cas;
while(cas--)
{
cen_x=cen_y=0;
cin>>n;
for(i=0;i>po[i].x>>po[i].y;
centerGra();
printf("%.2lf %.2lf\n",cen_x,cen_y);
}
return 0;
}
;i++)> ;i++)>
相关文章: