#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#include <string.h>
void Judge(char a[100],char b[100],char c[100]);
int main()
{
char a[100],b[100],c[100];
gets(a);
gets(b);
if(strlen(a)>strlen(b))//保证a数组存放长度更大的字符串
Judge(a,b,c);
else Judge(b,a,c);
for(int i=0;c[i]!='\0';i++)
printf("%c",c[i]);
return 0;
}
void Judge(char a[100],char b[100],char c[100])
{
int i=0,j=0,count=0,temp1,temp2,max = 0,k;
while(b[j]!='\0')
{
while(a[i]!='\0')
{
temp1 = i;//temp1 temp2 存放i j的初始位置
temp2 = j;
while(a[i] == b[j])
{