Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:注意两点之间可能有多条边In Reply To:注意两点之间可能有多条边 Posted by:Sister at 2009-12-15 15:00:23 > while(scanf("%d%d",&m,&n)!=EOF) > { > memset(mat,0,sizeof(mat)); > for(i=0;i<m;i++) > { > scanf("%d%d%d",&a,&b,&c); > mat[a][b]+=c;//处理两点之间的多条边 > } > printf("%d\n",Edmonds_Karp(1,n)); > } 原来如此,WA错了两次。这次对了,两个交叉点之间不止一条水沟啊。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator