HDU ACM-1003

1、如题,HDU ACM-1003最大数问题。链接地址:http://acm.hdu.edu.cn/showproblem.php?pid=1003 该题考察的是经典算法分治法,利用分治法求最大子段和。如下图: AC代码如下: #include <stdio.h> int getMaxNum(int *pArray, int nStart, int nEnd, int *pStart, int *
相关文章
相关标签/搜索