Description
One day, Jack’s mother make a piece of pizza for him and his father.
And Jack think everyone should get 1/3 of the pizza so that everyone get the same.
Now he choose three points on the pizza and he want to know the area of this triangle.
Input
There are several test cases. Each case contains six integers x1,y1,x2,y2,x3,y3.
You can assume three points will not be on one line.
Output
Output the area of the triangle formed by point (x1,y1),(x2,y2),(x3,y3) with exactly one digit after the decimal point.
Sample Input
0 0 1 1 1 0
0 0 2 2 2 0
Sample Output
0.5
2.0
代码