double cal_s(cor aa,cor bb,cor cc){ return fabs(aa.x*bb.y+cc.x*aa.y+bb.x*cc.y-cc.x*bb.y-aa.x*cc.y-bb.x*aa.y)/2; }