Professional Documents
Culture Documents
#include<stdio.h>
using namespace std;
cin>>T;
while(T--)
{
cin>>n1>>n2>>n3;
if (tail1 != NULL)
tail1->next = head3;
if (tail2 != NULL)
tail2->next = head3;
cout << intersectPoint(head1, head2) << endl;
}
return 0;
}