【BZOJ 2761】[JLOI2011]不重复数字
来源:互联网 发布:达内 训机构北京php 编辑:程序博客网 时间:2024/05/29 09:41
输出最后不能有空格。否则是RE??为什么不是PE?
#include<bits/stdc++.h>using namespace std;#define N 50010int T,n,x,a[N],p;map<int,bool> mp;int main(){ cin>>T; while(T--){ cin>>n; p = 0;mp.clear(); for(int i=1;i<=n;i++){ cin>>x; if(mp[x])continue; else mp[x]=true,a[++p]=x; } for(int i=1;i<=p;i==p?1:putchar(' '),i++) cout<<a[i]; cout<<endl; } return 0;}
0 0
- bzoj 2761: [JLOI2011]不重复数字
- bzoj 2761: [JLOI2011]不重复数字 排序
- 【BZOJ 2761】[JLOI2011]不重复数字
- BZOJ 2761: [JLOI2011]不重复数字
- BZoj 2761: [JLOI2011]不重复数字 (set
- bzoj 2761 [JLOI2011]不重复数字
- [bzoj-2761][JLOI2011]不重复数字 题解
- BZOJ[2761][JLOI2011]不重复数字 STL
- bzoj 2761: [JLOI2011]不重复数字
- BZOJ [JLOI2011]不重复数字
- BZOJ 大视野 2761: [JLOI2011]不重复数字 解题报告
- BZOJ 2761: [JLOI2011]不重复数字(傻逼题)
- 2761: [JLOI2011]不重复数字
- 2761: [JLOI2011]不重复数字
- 【JLOI2011】不重复数字
- 【bzoj2761】[JLOI2011]不重复数字
- bzoj2761 [JLOI2011]不重复数字
- [BZOJ2761][JLOI2011]不重复数字
- gstreamer的collectpad源码分析
- 角标选择排序
- hdu 5701 中位数计数
- 97. Interleaving String
- 对于学习排序法的总结
- 【BZOJ 2761】[JLOI2011]不重复数字
- SPOJ TO THE MOON 主席树(有动态修改)
- 常用类
- Linux TCP协议使用进程实现并发服务器
- codeforces 725G. Messages on a Tree
- 【UML】构件图(Component Diagram)
- c++ 进制转换,字母大小写转换,map按值排序 简单函数
- 数据结构实验之数组一:矩阵转置
- The NTLM Authentication Protocol