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

比较水的一道dfs,建议至少进行如下剪枝

Posted by 0943047777 at 2011-02-24 10:39:48 on Problem 2362
1.若当前stick不行,则相同长度的stick也不行
2.若此stick是某组第一个stick且不行,则不行。
3.最好用一个stack储存stick路径,避免了不需要的搜索。(我就TLE在这了。加上就能进32ms)。

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