![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Hash
MaverickFW
It's Maverick
展开
-
【Hash】【二分查找】17.6.3 集合 题解
#include <cstdio>#include <cstring>#include <iostream>#include <algorithm>#include <map>#include <vector>#define INF 92233720368546LL#define LL long longusing namespace std;const int maxx = 1e5原创 2017-06-05 20:32:37 · 328 阅读 · 0 评论 -
【BZOJ2761】【hash】[JLOI2011]不重复数字 题解
Description给出N个数,要求把其中重复的去掉,只保留第一次出现的数。 例如,给出的数为1 2 18 3 3 19 2 3 6 5 4,其中2和3有重复,去除后的结果为1 2 18 3 19 6 5 4。Input输入第一行为正整数T,表示有T组数据。 接下来每组数据包括两行,第一行为正整数N,表示有N个数。第二行为要去重的N个正整数。Output对于每组数据,输出一行,为去重后剩下的数原创 2017-11-01 21:37:55 · 552 阅读 · 0 评论