练习专区

今天的一小步就是明天的一大步
Problem 1107 三角形的面积2
Accepted: 7   Total Submit: 7
Time Limit: 1000ms   Memory Limit: 30720KB
Description
平面上有三个点求这三角形的面积。点用结构体定义: struct POINT { int x; int y; }; 面积写成函数,用下列公式表示(三个点逆时针为正):
Input
输入有若干行,每行六个整数,表示三个点的坐标。
Output
输出三角形的面积。结果保留一位小数.
Sample Input
0 0 2 2 4 0
0 -1 0 -2 1 1
Sample Output
4.0
0.5
Hint
提交     返回