摘要: // 1.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include typedef struct pair{ int* C; int* B; int max;}pair;//最大连续子数组的和pair sum(int* A,int n){ int* B = (int*)malloc(sizeof(int)*(n+1)); //标志 int* C = (int*)malloc(sizeof(int)*(n+1)); //C中存放的是每个子问题的最优解 int... 阅读全文
posted @ 2013-12-30 12:19 挡不住会飞的鸡 阅读(151) 评论(0) 推荐(0) 编辑