#include #include #include #include using namespace std; struct Point2D { int x,y; }; int nextvec[6][2]= { { 1,0 }, { 1,1 }, { 0,1 }, { -1,0 }, { -1,-1 }, { 0,-1 } }; char stra[1024]; char strb[1024]; char buff[1024]; Point2D pa[2000]; Point2D pb[2000]; bool cmp(const Point2D& a,const Point2D& b) { if(a.x==b.x) { return a.y < b.y; } return a.x < b.x; } int main() { int N; scanf("%d%*c",&N); while(N--) { memset(pa,0,sizeof(pa)); memset(pb,0,sizeof(pb)); gets(stra); gets(strb); gets(buff); int lena=strlen(stra); int lenb=strlen(strb); if(lena==0&&lenb==0) { printf("true\n"); continue; } else if(lena!=lenb) { printf("false\n"); continue; } int x=0; int y=0; for(int i=0;i