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:动态规划问题,这题数据太弱,应该加强,贴上代码

Posted by ld2rxt at 2014-09-16 22:09:55 on Problem 1664
In Reply To:动态规划问题,这题数据太弱,应该加强,贴上代码 Posted by:ld2rxt at 2014-09-16 22:06:20
动态方程:DP[M][N]表示M个苹果放入N个盘子的种类数
DP[M][N] = DP[M][N-1] + {DP[M - K*N][N-1], K=1,2,3,4,...}
你可以认为把盘子排过序就行,这个方程就很容易想得到了

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