#include
void read(int a[],int n)
{
int i;
for(i=0;i
int main()
{
int a[1100],n,m,b[100];
int c[1000],k,i,j;
scanf("%d%d",&n,&m);
read(a,n);
read(b,n);
j=i=k=0;
while(i
while(i
c[k++]=a[i];
i++;
}
while(i
c[k++]=b[j];
j++;
}
}
while(i
c[k++]=a[i];
i++;
}
while(j
c[k++]=b[j];
j++;
}
for(i=0;i
return 0;
}
int a[100],b[100],c[200];//自己定义
int *p1=a,*p2=b,*p3=c;
*p3++=*p1<*p2?*p1++:*p2++;
for(;p3