热门标签
更多>
搜索结果
查询Tags标签: P1434,共有 2条记录-
P1434 [SHOI2002]滑雪(DFS记忆化搜索)
题目地址 https://www.luogu.com.cn/problem/P1434 思路 dfs。将每个步骤得到的最大路径记录下来给后来者直接使用节省时间,即记忆化搜索 代码 #include <iostream> using namespace std; int n, m;//行 列 int a[105][105]; int dx[] = { 0,0,1,-1 }; int dy[] = …
2022/1/16 23:03:33 人评论 次浏览 -
P1434 [SHOI2002]滑雪(DFS记忆化搜索)
题目地址 https://www.luogu.com.cn/problem/P1434 思路 dfs。将每个步骤得到的最大路径记录下来给后来者直接使用节省时间,即记忆化搜索 代码 #include <iostream> using namespace std; int n, m;//行 列 int a[105][105]; int dx[] = { 0,0,1,-1 }; int dy[] = …
2022/1/16 23:03:33 人评论 次浏览