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[i][j]表示b里面value的最大值 i表示已经放的那些东西放在了哪个桶里面,j表示上一次是放在哪个桶里面 复杂度是3^n

Posted by yygy at 2023-05-24 14:08:24 on Problem 3400
In Reply To:逼我用全排列O(n!*n) Posted by:1210812305 at 2011-07-20 10:54:56
dp[i][j]表示b里面value的最大值
i表示已经放的那些东西放在了哪个桶里面,j表示上一次是放在哪个桶里面
复杂度是3^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