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 denghongchao at 2009-10-30 21:08:05 on Problem 2287
用田忌当前最强的跟最弱的分别跟齐王当前最强的比,最后得出最优解。注意初始化。

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