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 z286830682 at 2013-09-23 23:12:20 on Problem 2088
状态中不需要保存最后一个访问的博物馆的id吗,像这样:dp[state][pos],表示访问过的集合state并且现在在pos处的最小时间,但是我这样递推导致超时了。
看到蛮多状态都是开dp[state]直接搜的,这样能够保证最优性吗?位置不是也会影响决策的吗。
求路过的大牛解答,感激不尽

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