#include<stdio.h>
#include<math.h>
typedef struct{
double x,y;
}point;
point p[5];
int main(){
int t;
double x,y;
while(scanf("%d",&t)&&t!=0){
while(t--){
for(int i=1;i<=3;i++){
scanf("%lf%lf",&p[i].x,&p[i].y);
}
x=(p[1].x+p[2].x+p[3].x)/3.0;
y=(p[1].y+p[2].y+p[3].y)/3.0;
printf("%.1lf %.1lf\n",x,y);
}
}
return 0;
}
hoj 2105The Center of Gravity
最新推荐文章于 2018-09-17 19:19:52 发布