1 #include2 #include 3 #include 4 using namespace std; 5 char s[100][100],s1[100],s2[100]; 6 int main() 7 { 8 int t,m,j,h; 9 scanf("%d",&t);10 while(t--)11 {12 scanf("%d",&m);13 s2[0]='\0';14 bool flag=false;15 for(int i=0; i 0)40 {41 flag=true;42 strcpy(s2,s1);43 }44 }45 else if(strlen(s1)>strlen(s2))46 {47 flag=true;48 strcpy(s2,s1);49 }50 }51 len++;52 }53 }54 if(flag) printf("%s\n",s2);55 else printf("no significant commonalities\n");56 }57 return 0;58 }