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 |
注意两点之间可能有多条边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)); } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator