码迷,mamicode.com
首页 >  
搜索关键字:the suspects    ( 124个结果
POJ 1611 The Suspects (并查集)
The Suspects Time Limit: 1000MS   Memory Limit: 20000K Total Submissions: 24633   Accepted: 12072 Description Severe acute respiratory syndrome (SARS), an atypical pneumo...
分类:其他好文   时间:2015-04-15 09:45:07    阅读次数:129
poj 1611 The Suspects 【并查集】
The SuspectsTime Limit: 1000MS Memory Limit: 20000K Total Submissions: 24570 Accepted: 12033 DescriptionSevere acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was rec...
分类:其他好文   时间:2015-04-09 17:31:36    阅读次数:118
POJ The Suspects
The Suspects Time Limit: 1000MS   Memory Limit: 20000K Total Submissions: 24259   Accepted: 11874 Description Severe acute respiratory syndrome (SARS), an atypical pneumo...
分类:其他好文   时间:2015-03-21 09:49:37    阅读次数:151
【原创】poj ----- 1611 The Suspects 解题报告
题目地址:http://poj.org/problem?id=1611题目内容:The SuspectsTime Limit:1000MSMemory Limit:20000KTotal Submissions:24253Accepted:11868DescriptionSevere acute r...
分类:其他好文   时间:2015-03-19 00:52:10    阅读次数:171
POJ 1611 The Suspects (并查集+数组记录子孙个数 )
The SuspectsTime Limit: 1000MSMemory Limit: 20000KTotal Submissions: 24134Accepted: 11787DescriptionSevere acute respiratory syndrome (SARS), an atypi...
分类:编程语言   时间:2015-03-03 21:52:12    阅读次数:198
POJ 1611 The Suspects (并查集)
简单并查集,没什么好说的。  题目连接:请戳这里。 题目大意:0一定是SARS,和SARS在一起的一定是SARS,求0~n-1中共有多少个SARS; 思路:回顾下并查集,顾名思义,并查集的作用不就的“并”和“查”嘛。并查集的功能描述为:合并两个集合;将一元素并入另一集体;判断两个元素是否属于同一个集合。 题目也是给你m个集合咯。所以很简单咯。 ~~~~ #include #include...
分类:其他好文   时间:2015-01-17 10:02:32    阅读次数:124
POJ 1611-The Suspects(并查集求秩)
The Suspects Time Limit: 1000MS   Memory Limit: 20000K Total Submissions: 23610   Accepted: 11513 Description Severe acute respiratory syndrome (SARS), an atypical pneu...
分类:其他好文   时间:2015-01-12 09:25:34    阅读次数:148
POJ 1611 The Suspects (并查集)
The Suspects Time Limit: 1000MS   Memory Limit: 20000K Total Submissions: 23426   Accepted: 11400 Description Severe acute respiratory syndrome (SARS), an atypical pneu...
分类:其他好文   时间:2014-12-06 18:18:09    阅读次数:298
POJ 1611 The Suspects【并查集】
解题思路:一共给出 n个人,m组,接下来是m组数据,每一组开头是该组共有的人 num,则接下来输入的num个数,这些数是一组的又因为最开始只有编号为0的人携带有病毒,且只有同一组的人会相互传染,问最后一共有多少人携带有病毒,则问题简化为求含有0那一组一共有多少个人。反思:最开始把对应每输入一组的数据...
分类:其他好文   时间:2014-11-28 14:12:29    阅读次数:152
POJ-1611-The Suspects (简单并查集!)
The Suspects Time Limit: 1000MS   Memory Limit: 20000K Total Submissions: 23337   Accepted: 11345 Description Severe acute respiratory syndrome (SARS), an atypical pneu...
分类:其他好文   时间:2014-11-21 10:48:05    阅读次数:251
124条   上一页 1 ... 8 9 10 11 12 13 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!