2012年8月11日

hdu 并查集专题

摘要: http://acm.hdu.edu.cn/diy/contest_show.php?cid=165621.How Many TablesView Code 1 #include<stdio.h> 2 int root[1001]; 3 int find(int x) 4 { 5 int r=x; 6 while(r!=root[r]) 7 r=root[r]; 8 int i=x,j; 9 /*10 while(i!=r)11 {12 j=root[i];13 root[i]=r;14 ... 阅读全文

posted @ 2012-08-11 16:47 仁者无敌8勇者无惧 阅读(225) 评论(0) 推荐(0) 编辑

hdu 1863畅通工程

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1863畅通工程Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 9952Accepted Submission(s): 3929Problem Description省政府“畅通工程”的目标是使全省任何两个村庄间都可以实现公路交通(但不一定有直接的公路相连,只要能间接通过公路可达即可)。经过调查评估,得到的统计表中列出了有可能建设公路的若干条道路的成本。现请你编 阅读全文

posted @ 2012-08-11 16:23 仁者无敌8勇者无惧 阅读(146) 评论(0) 推荐(0) 编辑

hdu 2473Junk-Mail Filter

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2473Junk-Mail FilterTime Limit: 15000/8000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3948Accepted Submission(s): 1197Problem DescriptionRecognizing junk mails is a tough task. The method used here consists of two steps:1) 阅读全文

posted @ 2012-08-11 13:21 仁者无敌8勇者无惧 阅读(227) 评论(0) 推荐(0) 编辑

导航