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 ccyjava at 2011-04-09 16:42:42 on Problem 2287
In Reply To:贪心过了,附代码 Posted by:dingyaguang117 at 2011-04-09 10:19:37
我是这样的~~~~

都按照从大到小排序
1.如果我当前最大的比对面最大的大,拼
2.如果我最大的比对面最大的小,拿我最小的和对面最大的拼
3.如果我当前最大的和对面最大的相等,就囧了
那就从小往大比
3.1如果我的最小比对面最小的大,先把小的拼掉
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