HDU 1412 {A} + {B}(set容器)
来源:互联网 发布:中路火男打js好打吗 编辑:程序博客网 时间:2024/06/13 07:48
#include<set>#include<stdio.h>using namespace std;int main(){int n,m,a;set<int> aa;while(scanf("%d%d",&n,&m)!=EOF){ //此处要加上!=EOF,否则否出现Time Limit Exceeded aa.clear();for(int i=1;i<=n;i++){scanf("%d",&a);aa.insert(a);} for(int i=1;i<=m;i++){scanf("%d",&a);aa.insert(a);}set<int>::iterator it;int b=0;for(it=aa.begin();it!=aa.end();it++){if(b++) printf("%c",' ');printf("%d",*it);}printf("%c",'\n');}}
0 0
- HDU 1412 {A} + {B}(set容器)
- HDU 1412 {A} + {B}【set容器】
- {A} + {B}(set容器)
- Hdu 1412({A} + {B}),简单的set应用
- HDU 1412 {A} + {B} STL<set> 水题
- HDU 1412 {A} + {B} set练习
- HDOJ(HDU).1412 {A} + {B} (STL SET)
- hdoj1412 {A} + {B} (set)
- hdu 1412 {A} + {B}
- HDU 1412 {A}+{B}
- HDU 1412 ( {A} + {B} )
- HDU 1412 {A}+{B}
- HDU-1412{A}+{B}
- hdu 1412 {A} + {B}
- hdu 1412 {A} + {B}
- hdu-1412-{A}+{B}
- HDU 1412 {A} + {B}
- HDU 1412{A} + {B}
- MyBatis中的N+1问题
- c++双向链表的实现_1.0版本
- static与final详解与陷阱
- egt、GetHub更新本地No value for key branch.master.merge found in configuration
- Windows服务简介(转)
- HDU 1412 {A} + {B}(set容器)
- hdu 5108 最小的M使N/M为素
- java proxy 代理
- Oracle dbms_stats
- 从稀疏表示到低秩表示(五)
- Fedora 20 为内核建立可用的源码树
- 缩略图的生成与添加水印
- 文件大小格式化(JS)
- 小白一键重装系统软件下载到99%不动无法安装