#include #include using namespace std; const int Max = 100000 + 10; char a[Max]; char b[Max]; struct Node { char *suf; bool flag; }; Node suffix[Max * 2]; int com(const void * a, const void *b) { return strcmp(((Node *)a)->suf, ((Node *)b)->suf); } int comLen(char *a, char *b) { int len = 0; while(*a++ == *b++) len ++; return len; } int main() { int max; while(scanf("%s %s", a, b) != EOF) { int lenA = strlen(a); int lenB = strlen(b); for(int i=0; i max) max = temp; printf("%d\n", max); } return 0; }