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 Sempr at 2007-01-27 22:11:29 on Problem 3186
In Reply To:感觉自己程序是实现了想到的方法的,但是WA了,可能是方法错了!各位是怎么做的? Posted by:nuciedh at 2007-01-27 22:09:12
dp[i+1][j] = Max(dp[i+1][j], dp[i][j]+(i+1)*v[k]);
dp[i+1][j+1] = Max(dp[i+1][j+1], dp[i][j]+(i+1)*v[N-1-j]);

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