Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:不解,难道是数据太弱,还是...?

Posted by Yuzia at 2007-05-15 14:53:09 on Problem 1273
In Reply To:不解,难道是数据太弱,还是...? Posted by:mayp at 2007-04-13 20:47:00
> if(f[path[i]][i] > 0)
>  {
>  		cf[i][path[i]] = f[path[i]][i];
>  		cf[path[i]][i] = cap[path[i]][i] - f[path[i]][i];
>  }
> 不明白这么写为什么也能AC?按最大流的思想,应该:
> cf[i][path[i]] = cap[i][path[i]]+f[path[i]][i];
??????????
按照残余网络的定义是
cf[i][path[i]] = f[path[i]][i];没错啊~

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator