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