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 forsona at 2009-04-21 20:49:43 on Problem 3469
推荐用SAP,Gap优化和Current优化必不可少,Greedy初始流的优化并不太显著(减少200ms)
但是很重要的一点就是,只考虑前向弧,不需考虑反向的弧!很重要,我就因为写最大流太“老实”(其实是呆板,死板)而TLE了N次
如有需要,请看题解
http://hi.baidu.com/forsona/blog/item/c54f8de80cf15c37b90e2d3d.html

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