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:为什么我用km可以ac用费用流却wa呢。。In Reply To:为什么我用km可以ac用费用流却wa呢。。 Posted by:DH_FireCity at 2006-12-26 02:09:11 cost[i][M_map.size()+j]=abs(M_map[i].x-H_map[j].x)+abs(M_map[i].y-H_map[j].y); 下边应该再加上一句 cost[M_map.size()+j][i]=-cost[i][M_map.size()+j]; Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator