摘要:
#include <iostream> #include<ctime>#define Num 10000using namespace std; int DTGH_Sum(int a[],int n) //动态规划法求子段和函数{ int sum = 0; int *b = (int *) mall 阅读全文
摘要:
输入一个二维整形数组,数组里有正数也有负数 二维数组中连续的一个子矩阵组成一个子数组,每个子数组都有一个和 求所有子数组的和的最大值。 #include <iostream>#include <time.h>using namespace std;#define M 4#define N 8 voi 阅读全文