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 perfect_connection at 2005-07-02 13:59:01 on Problem 2287
In Reply To:我想说说我的想法,大家可以看看吗?不知道对不对,不管是不是高手都欢迎. Posted by:perfect_connection at 2005-07-01 20:09:42
> 我的想法是
> 1.首先给两个数列排序a,b(a是田忌的,b是皇帝的)例如从大到小的次序.
> 2.然后判断皇帝最差的马在田的马中排多少,接着将田的马排在之后的全部和皇帝相应数目最好的马对应(因为要用自己最差的换别人最好的)
> 3.相同的,判断田的最差马在皇中的名词,将皇的排在之后的马和田相应数目最差的马对应(因为要用自己最差的去赢别人,保持实力)
> 4.在2,3之间和3后分别将两者末尾速度相同的马依次对应
> 5.重复2,3,4直到数列为空.
> 请大家帮我看看,想法有错吗?

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