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

我是觉得写成搜索的样子比较好写,不用考虑dp的顺序

Posted by kicc at 2005-04-24 16:43:38 on Problem 1923
In Reply To:对,都是利用了最优子结构,但是....... Posted by:TN at 2005-04-24 16:38:58
有时候这种写法是会比较耗费空间
因为是搜索,所以一般比直接写慢
但是我还是比较喜欢这种写法

并且有时候这种写法反而会快点
比如1054

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