3D Triangles wu-kan

int main()
{
	int t;
	for(scanf("%d",&t); t--;)
	{
		Coord3 p[6];
		for(int i=0; i<6; ++i)
			scanf("%lf%lf%lf",&p[i].X,&p[i].Y,&p[i].Z);
		printf("%d\n",TriTriIntersection(p,p+3));
	}
}