摘要: /*只需判断等效边和必选边的个数和n-1的关系即可*/#include#include#define N 110struct node { int u,v,w;}f[N*N*2];int cmp(const void *a,const void*b) {return (*(struct node ... 阅读全文
posted @ 2014-08-14 20:31 HYDhyd 阅读(138) 评论(0) 推荐(0) 编辑
摘要: #includeint main(){ __int64 h,a,b,k,j=0; while(scanf("%I64d%I64d%I64d%I64d",&h,&a,&b,&k),h||a||b||k) { printf("Case #%I64d: ",++j); ... 阅读全文
posted @ 2014-08-14 18:26 HYDhyd 阅读(78) 评论(0) 推荐(0) 编辑