摘要:
记忆化搜索,使用dfs,从0,0点开始,把每个点对应的剩下路程所能得到的最大值存入f数组。View Code #include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>#include <vector>#include <cmath>#include <queue>using namespace std;#define maxn 105int map[maxn][maxn];int f[maxn][maxn];int ans, 阅读全文
posted @ 2011-03-29 09:03
undefined2024
阅读(143)
评论(0)
推荐(0)