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:再问这题的贪心算法

Posted by xfxyjwf at 2005-05-26 18:10:40 on Problem 2287
In Reply To:Re:再问这题的贪心算法 Posted by:nestle at 2005-05-26 17:46:13
先算出至少输多少次,设为m
FOR X = M TO N
算出输X次最多能得多少分
(显然把田忌最次的X匹拉出来和齐王最好的比,其他的顺次排下来就行了)
NEXT
加点剪支.
> 能说得再详细一点么?谢谢...

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