hdu1412
来源:互联网 发布:混凝土强度计算软件 编辑:程序博客网 时间:2024/05/16 19:05
#include<iostream>
#include<stdio.h>
#include<algorithm>
#include<string.h>
using namespace std;
int cmp(int a,int b){
return a<b;
}
int main(int argc, char *argv[])
{
int a,b,m,n,i,j;
int c1[20000];
while(scanf("%d%d",&m,&n)!=EOF){
memset(c1,0,sizeof(c1));
int k=0;
for(i=0;i<m;i++)
scanf("%d",&c1[k++]);
for(i=0;i<n;i++)
{
scanf("%d",&c1[k++]);
}
sort(c1,c1+k,cmp);
int l=1;
for(i=0;i<k;i++)
{
if(c1[i]!=c1[i+1])
{
printf(l?"%d":" %d",c1[i]);
l=0;
}
}
cout<<endl;
}
return 0;
}
- hdu1412
- HDU1412
- hdu1412
- HDU1412
- hdu1412
- HDU1412-set
- hdu1412 ({a}+{b})
- hdu1412{A} + {B}
- HDU1412:{A} + {B}
- HDU1412:{A} + {B}
- hdu1412 搬寝室
- hdu1412 ({a}+{b})
- hdu1412 {A} + {B}
- HDU1412 {A} + {B}
- HDU1412-{A} + {B}
- HDU1412{A} + {B}
- hdu1412 {A}+{B}
- hdu1412——{A} + {B}
- Field requires API level 5 (current min is 1) 等类似问题的解决
- Android中打印代码的调用层次
- html5学习
- Linux中遍历目录
- JAVA File的创建及相对路径绝对路径
- hdu1412
- 九月腾讯,创新工场,淘宝等公司最新面试三十题(第171-200题)
- Linux中获得当前目录名称的4种方法
- 今天无课
- MySQl分组显示组内前N项
- java.util.Date与字符串之间的转换
- Widgets高级篇
- InterlockedIncrement
- Java中的IO流知识总结(转)