2012年8月10日

并查集

摘要: http://hi.baidu.com/344847199/blog/item/79092f1fec9527d2a78669a5.html 阅读全文

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

hdu 1709 The Balance

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1709View Code 1 /* 2 砝码称重 3 */ 4 5 6 #include<stdio.h> 7 #include<string.h> 8 int f(int x,int y) 9 {10 if(x>y) return x-y;11 else return y-x;12 }13 int main()14 {15 16 17 int n;18 int p[10010];19 int sum[10010];20 int temp[100... 阅读全文

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

导航