#include <iostream>
#include <stdio.h>
#include <string.h>
#include <algorithm>
#include <vector>
#include <math.h>
using namespace std;
struct Point { double x, y; };
double area(Point a, Point b, Point c)
{ return a.x*b.y+b.x*c.y+c.x*a.y-a.x*c.y-b.x*a.y-c.x*b.y; }
int main()
{
Point a, b, c;
int t;
cin >> t;
while(t--)
{
cin >> a.x >> a.y >> b.x >> b.y >> c.x >> c.y;
printf("%.0lf\n", area(a, b, c)/14);
}
return 0;
}
uva 11437 - Triangle Fun
最新推荐文章于 2020-09-18 19:33:33 发布
