Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
贪心,三种情况显然贪心的策略就是多用田忌最慢的去拼齐王最快的, 那么什么时候用这个策略呢: 1.有齐王最快的马参赛的比赛田忌不可能赢,否则当前用田忌最快的马把齐王最快的马赢了。 2.有田忌最慢的马参赛的比赛田忌不可能赢,否则当前用田忌最慢的马把齐王最慢的马赢了。 3.前面2条符合就果断用最顶上的策略:用田忌最慢的去耗齐王最快的. Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator