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 |
很郁闷..这道题都不会...想了很久,想出一个算法:整个数组,可分成很多段,每段都是递增或者递减或者不变,把所以转折点的数加或减,就可以算出最大值...不知道这个算法对不对?还是我的程序有漏洞.. Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator