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为什么WA

Posted by Dereky at 2012-03-18 10:23:03 on Problem 3422
In Reply To:这样DP为什么WA Posted by:Da_corleane at 2010-04-03 22:00:04
贪心是不行的,比如这组数据
3 2
0 1 0
2 3 4
5 0 0
第一次取2->3->4
第二次取5
但最优解是
第一次取1->3->4
第二次取2->5

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