#include<stdio.h>
#include<math.h>
typedef struct pair{
int x;
int y;
}pair;
float fun(pair a,pair b){
return sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y));
}
int main(){
pair k[3];
int i;float a,b,c,p,s;
for(i=0;i<3;i++) scanf("%d%d",&k[i].x,&k[i].y);
a=fun(k[0],k[1]);
b=fun(k[1],k[2]);
c=fun(k[0],k[2]);
p=(a+b+c)/2;
s=sqrt(p*(p-a)*(p-b)*(p-c));
printf("%.2f",s);
return 0;
}
温馨提示:答案为网友推荐,仅供参考