2017-12-21-UVA-11275

yanhuiandy / 2023-07-22 / 原文

redirect_from: /_posts/2017-12-21-UVA-11275/
title: 3D Triangles
tags:
  - 算法竞赛

  • 三维几何模板
  • 分数类模板
  • 题目链接
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));
	}
}