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

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

Posted by mayp at 2007-04-13 20:47:00 on Problem 1273
In Reply To:自问自答了 Posted by:fishyuze at 2007-03-27 22:41:13
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];

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