码迷,mamicode.com
首页 >  
搜索关键字:the suspects    ( 124个结果
并查集简单题
The Suspects题目传送:POJ-1611-The SuspectsAC代码:#include #include #include #include #include #include #include #include #include #inclu...
分类:其他好文   时间:2015-07-30 00:48:14    阅读次数:106
poj1611 - The Suspects
The Suspects Time Limit: 1000MS   Memory Limit: 20000K Total Submissions: 26527   Accepted: 12965 Description Severe acute respiratory syndrome (SARS), an atypical pneu...
分类:其他好文   时间:2015-07-24 22:40:59    阅读次数:114
POJ1611 The Suspects: 并查集入门
#includeusing namespace std;#define Size 30000int Pre[Size+1], Sum[Size+1];// Sum[i] 表示 第i组 的人数int Get_Pre( int a ){ if( Pre[a]!=a ) ...
分类:其他好文   时间:2015-07-23 21:17:28    阅读次数:130
【CF】110 Div.1 B. Suspects
这题目乍眼一看还以为是2-sat。其实很水的,O(n)就解了。枚举每个人,假设其作为凶手。观察是否满足条件。然后再对满足的数目分类讨论,进行求解。 1 /* 156B */ 2 #include 3 #include 4 #include 5 #include 6 #includ...
分类:其他好文   时间:2015-07-22 01:36:11    阅读次数:131
The Suspects-并查集(4)
C - The Suspects Time Limit:1000MS Memory Limit:20000KB 64bit IO Format:%I64d & %I64uSubmit StatusDescription Severe acute respiratory syndrome (SARS)...
分类:其他好文   时间:2015-07-04 15:27:20    阅读次数:91
Codeforces Round #298 (Div. 2), problem: (A) Exam
Codeforces Round #298 (Div. 2), problem: (A) Exam An exam for n students will take place in a long and narrow room, so the students will sit in a line in some order. The teacher suspects that students with adjacent numbers (i and i?+?1) always studied side...
分类:其他好文   时间:2015-05-27 10:19:29    阅读次数:150
POJ 1611 The Suspects (并查集)
The SuspectsTime Limit:1000MSMemory Limit:20000KTotal Submissions:25130Accepted:12313DescriptionSevere acute respiratory syndrome (SARS), an atypical ...
分类:其他好文   时间:2015-05-25 23:58:55    阅读次数:326
poj 1611 The Suspects(并查集)
The Suspects Time Limit: 1000MS   Memory Limit: 20000K Total Submissions: 24970   Accepted: 12250 Description Severe acute respiratory syndrome (SARS), an atypical pneumoni...
分类:其他好文   时间:2015-05-09 10:19:28    阅读次数:120
POJ 1611 The Suspects:并查集
DescriptionSevere acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as a global threat in mid-March 2003. ...
分类:其他好文   时间:2015-04-23 19:36:42    阅读次数:124
Codeforces534A:Exam
An exam for n students will take place in a long and narrow room, so the students will sit in a line in some order. The teacher suspects that students with adjacent numbers (i and i?+?1) always stud...
分类:其他好文   时间:2015-04-18 20:39:11    阅读次数:146
124条   上一页 1 ... 7 8 9 10 11 ... 13 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!