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 2007210562 at 2009-07-25 11:41:11 on Problem 2181
每次加递增序列里的最大数! 减去递减数列里的最小数!~~
例如:7 (2 1) (8) (4 3) (5 6)  原数列应该划分如左形式:
那么:+7 -1 +8 -3 +6 = 17
需要提示的是:  最后一个数一定是"+".

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