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 |
第一次贪心法做出来一题!~~ 庆祝一下!~~(提供思路,希望对大家有用!)每次加递增序列里的最大数! 减去递减数列里的最小数!~~ 例如:7 (2 1) (8) (4 3) (5 6) 原数列应该划分如左形式: 那么:+7 -1 +8 -3 +6 = 17 需要提示的是: 最后一个数一定是"+". Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator