随笔分类 -  并查集

Ubiquitous Religions-并查集(5)
摘要:Description There are so many different religions in the world today that it is difficult to keep track of them all. You are interested in finding out... 阅读全文

posted @ 2015-07-04 16:20 甜蜜蜜吖甜蜜蜜 阅读(189) 评论(0) 推荐(0)

The Suspects-并查集(4)
摘要:C - The Suspects Time Limit:1000MS Memory Limit:20000KB 64bit IO Format:%I64d & %I64uSubmit StatusDescription Severe acute respiratory syndrome (SARS)... 阅读全文

posted @ 2015-07-04 14:34 甜蜜蜜吖甜蜜蜜 阅读(155) 评论(0) 推荐(0)

Is It A Tree?-并查集(3)
摘要:Is It A Tree?Time Limit: 1000MSMemory Limit: 10000KTotal Submissions: 26126Accepted: 8920DescriptionA tree is a well-known data structure that is eith... 阅读全文

posted @ 2015-07-04 09:32 甜蜜蜜吖甜蜜蜜 阅读(186) 评论(0) 推荐(0)

POJ-1703-Find them, Catch them
摘要:Description The police office in Tadu City decides to say ends to the chaos, as launch actions to root up the TWO gangs in the city, Gang Dragon and G... 阅读全文

posted @ 2015-07-03 15:46 甜蜜蜜吖甜蜜蜜 阅读(132) 评论(0) 推荐(0)

vijos-1034-家族
摘要:数据输入:第一行:三个整数n,m,p,(n 2 #include 3 #include 4 const int N=5100; 5 int ai,aj,pi,pj; 6 int m,n,p; 7 int pa[N]; 8 int cha(int k) 9 {10 if(pa[k]!=k... 阅读全文

posted @ 2015-07-03 09:46 甜蜜蜜吖甜蜜蜜 阅读(150) 评论(0) 推荐(0)

导航