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 TN at 2005-04-08 10:35:44 on Problem 1159
In Reply To:Re:大家帮忙看看我的程序,有没有办法改进时间复杂性,老是超时 Posted by:ruanrongbin at 2005-04-07 17:02:26
> 我是用递归实现的,不过每次弟归都要调用两个子程序,复杂性是2的n次方,
> 有没有办法改进?
> 小弟在此先谢谢了。

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