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 yc5_yc at 2012-06-07 17:51:22 on Problem 1191
将均方差公式两边平方可以看出,我们的目的是让每个矩形总分的平方和尽量小,并且对于每一个子矩形,将它切成两半后,只能有一半可以继续切,所以此题可以转化为一个很容易的DP问题。
注意要预处理所有类似((0,0),(x,y))的矩形的平方和,这样在转移时可以通过O(1)的时间直接算出!

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