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

Re:dp

Posted by 20053565 at 2007-03-01 16:05:47 on Problem 3186
In Reply To:Re:dp Posted by:Drizzle at 2007-02-23 20:07:56
> 
> 偶瞎搞了一个,竟然ac了。。晕了
> f[i][j] = max(f[i - 1][j] + data[i - 1] * (N + i - j - 1), f[i][j + 1] + data[j + 1] * (N + i - j - 1));
> 特例
> f[i][i] + data[i] * N
你AC了?我怎么超时了啊?

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