set容器
来源:互联网 发布:有像皮影客类的软件 编辑:程序博客网 时间:2024/05/29 17:48
#include<set>#include<iostream>#include<cstdio>using namespace std;int main(){//freopen("a.in","r",stdin);set<int> s;int m,t;s.clear(); //清空 cin>>m; while(m--){cin>>t;s.insert(t);}cout<<s.size()<<endl; //计算总个数 for(set<int>::iterator it(s.begin());it!=s.end();it++) cout<<*it<<' ';cout<<endl;return 0;}
0 0
- set容器
- set容器
- set容器
- 容器set
- set容器
- 容器set
- set 容器
- Set容器
- 容器Set
- set容器
- set 容器
- set容器
- set容器
- set容器
- set容器
- set容器
- set 容器
- set容器
- pv uv ip的定义和区别
- HTML5
- Serial Programming HOWTO
- RadioButton上的文字居中显示
- 今日作息及食谱(7.22 7.23)
- set容器
- 怎么在debian下操作ctags
- css hack
- POJ 3255 Roadblocks 次短路
- C语言的本质(37)——makefile之隐含规则和模式规则
- My SQL的锁机制
- 深度解析CentOS通过日志反查入侵
- UVa 10697 - Firemen barracks
- 认识单例