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

贪心,三种情况

Posted by angeldust at 2012-07-03 18:39:34 on Problem 2287
显然贪心的策略就是多用田忌最慢的去拼齐王最快的,
那么什么时候用这个策略呢:

1.有齐王最快的马参赛的比赛田忌不可能赢,否则当前用田忌最快的马把齐王最快的马赢了。

2.有田忌最慢的马参赛的比赛田忌不可能赢,否则当前用田忌最慢的马把齐王最慢的马赢了。

3.前面2条符合就果断用最顶上的策略:用田忌最慢的去耗齐王最快的.

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