POJ 1163题 数字三角形问题(动态规划)
摘要:
http://poj.org/problem?id=11631、普通递归#include <iostream>
#include <cstring>
#include <cstdio>
using namespace std; #define __max(a,b) (((a) > (b)) ? (a) : (b))
#define MAXNUM 101 int N;
int aMax[MAXNUM][MAXNUM]; // aMax is memorandum
int matrix[MAXNUM][MAXNUM]; int Max(int i, int 阅读全文
posted @ 2012-04-07 19:11 jjtx 阅读(548) 评论(0) 推荐(0) 编辑