2012年8月13日

hdu 3371Connect the Cities

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=3371View Code 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<string.h> 4 int root[510]; 5 struct Node 6 { 7 int start,end; 8 int len; 9 }node[25010];10 int cmp(const void*x,const void*y)11 {12 return (*(Node*)x).len-(*(Node*)y).len;13 阅读全文

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

hdu 1233还是畅通工程

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1233View Code 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<string.h> 4 #define INIT 0x7ffffff 5 int Graph[110][110]; 6 int vis[110],dis[110]; 7 int town,road; 8 int sum; 9 int count;10 void prime()11 {12 memset(vis,0,sizeof(vis));13 阅读全文

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

导航