#include <stdio.h>
#include<string.h>
#include<math.h>
#include<algorithm>
using namespace std;
#define max 20001
int x[max];
int main(){
int i,n,m;
while(scanf("%d%d",&n,&m)!=EOF){
memset(x,0,sizeof(x));
for(i=0;i<n+m;i++)
scanf("%d",&x[i]);
sort(x,x+n+m);
printf("%d",x[0]);
for(i=1;i<n+m;i++){
if(x[i]!=x[i-1])
printf(" %d",x[i]);
}
printf("\n");
}
return 0;
}
hdu1412 {A} + {B}
最新推荐文章于 2019-04-04 14:39:57 发布