bzoj2761 [JLOI2011]不重复数字
来源:互联网 发布:python会取代java么 编辑:程序博客网 时间:2024/06/03 02:26
题目
简单题。。。
注意输出格式。
一个空格都不能多2333
#include<bits/stdc++.h>#define N 50000#define mod 1587991using namespace std;int n,T;int x;set <int> E;int main(){ //freopen("in.txt","r",stdin); scanf("%d",&T); while(T--) { E.clear(); scanf("%d",&n); scanf("%d",&x);printf("%d",x);E.insert(x); for(int i=2;i<=n;i++) { scanf("%d",&x); if(!E.count(x))printf(" %d",x); E.insert(x); } if(T)printf("\n"); }}
阅读全文
0 0
- 【bzoj2761】[JLOI2011]不重复数字
- bzoj2761 [JLOI2011]不重复数字
- [BZOJ2761][JLOI2011]不重复数字
- 【JLOI2011】【BZOJ2761】不重复数字
- bzoj2761 [JLOI2011]不重复数字
- 【bzoj2761】【JLOI2011】不重复数字
- bzoj2761 [JLOI2011]不重复数字
- bzoj2761 [JLOI2011]不重复数字
- BZOJ2761: [JLOI2011]不重复数字
- BZOJ2761 [JLOI2011]不重复数字
- 【BZOJ2761】[JLOI2011]不重复数字 STL set
- [BZOJ2761]JLOI2011不重复的数字
- 【bzoj2761】【JLOI2011】【不重复数字】【平衡树】
- [BZOJ2761][JLOI2011]不重复数字(splay)
- 【BZOJ2761】【hash】[JLOI2011]不重复数字 题解
- BZOJ2761 不重复数字
- [BZOJ2761] 不重复数字
- 【JLOI2011】不重复数字
- bzoj2460 [BeiJing2011]元素
- 刷了两遍LeetCode之后,我拿了9个offer
- (七)Working with System Permissions使用系统权限
- 如何在Listview中拖拽其中的子Item移动其位置
- bzoj2463 [中山市选2009]谁能赢呢?
- bzoj2761 [JLOI2011]不重复数字
- Mark 一些有意思的深度学习方向
- bzoj3505 [Cqoi2014]数三角形
- HDU1048 凯撒加密
- Permissions on the password database may be too restrictive.
- bzoj4300 绝世好题
- 运算
- #ZCH快捷键
- Win7(64位)系统下Python3.6.0(Anaconda3-4.4.0)+Tensorflow的安装与配置