摘要:
dp = arr[i];27 else28 dp += arr[i];29 if (dp max2 ? max1 : max2;//三目运算符;如果max1>max2,将max1的值返回,否则返回max235 }36 int maxSubMatrix(int n, int m, int array... 阅读全文
摘要:
#include2 #include3 #include5 #define N 56 using namespace std;7 8 int MaxSum(int *arr, int size)9 {10 int i, sum, max1, max2, dp,min;11 dp = max1 = a... 阅读全文