![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
Voyager2023
这个作者很懒,什么都没留下…
展开
-
POJ 1611 The Suspects 并查集(代码带启发式合并)
#include #include const int MAX = 30000 + 100; int fa[MAX]; int Find(int x){ return fa[x] < 0 ? x : fa[x] = Find(fa[x]); } void Union(int x,int y){ int a = Find(x),b = Find(y); if(a ==原创 2014-10-28 18:17:31 · 1493 阅读 · 0 评论 -
UVALive 3644 X-Plosives 并查集
X-Plosives A secret service develop ed a new kind of explosive that attain its volatile prop erty only when a sp ecific asso ciation of pro ducts o ccurs. Each pro duct is a mix of two different sim原创 2014-10-20 22:49:01 · 572 阅读 · 0 评论 -
POJ 2823 Sliding Window 单调队列
Sliding Window Time Limit: 12000MS Memory Limit: 65536K Total Submissions: 46492 Accepted: 13438 Case Time Limit: 5000MS Description An array of size n ≤ 106 i原创 2015-07-27 10:30:09 · 474 阅读 · 0 评论