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 |
ISAP如果一开始bfs就错!为什么ISAP最开始要算出每个点i到汇点t的距离d[i],然后计算出num数组来gap优化,但是如果单纯的把记录距离的d数组所有值制零,即memset(d, 0, sizeof d),然后num[0] = m(m是节点个数),再把bfs的语句删掉,就能ac,不然的话test12这个点就过不了,为什么!求解 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator