![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
DFS
文章平均质量分 76
shuaishuai-zhang
这个作者很懒,什么都没留下…
展开
-
递归——放苹果
原文链接:https://www.luogu.com.cn/problem/P2386AC代码:#include<iostream>#include<string.h>#include<vector>#include<algorithm>using namespace std;int T;int n,m,num=0;vector&...原创 2020-04-14 18:36:00 · 78 阅读 · 0 评论 -
归并——最接近神的人
原文链接:https://www.luogu.com.cn/problem/P1774AC代码:#include<iostream>#include<string.h>#include<vector>#include<algorithm>using namespace std;#define ll long long ll num=...原创 2020-04-13 16:00:37 · 124 阅读 · 0 评论 -
记忆化搜索——食物链
原文链接:https://www.luogu.com.cn/problem/P3183AC代码:#include<iostream>#include<string.h>#include<vector>#include<math.h>#include<algorithm>using namespace std;int n...原创 2020-04-12 15:44:06 · 156 阅读 · 0 评论 -
记忆化搜索——滑雪
原文链接:https://www.luogu.com.cn/problem/P1434AC代码:#include<iostream>#include<string.h>#include<vector>#include<algorithm>using namespace std;int n,m,mapp[105][105],dp[105...原创 2020-04-11 21:17:13 · 91 阅读 · 0 评论 -
dfs——走迷宫
原文链接:https://www.luogu.com.cn/problem/P1238AC代码:#include<iostream>#include<string.h>#include<vector>#include<algorithm>using namespace std;int n,m,flag=-1;int dir0[4]=...原创 2020-04-07 15:44:48 · 108 阅读 · 0 评论 -
dfs
原文链接:https://www.luogu.com.cn/problem/P1215AC代码:#include<iostream>#include<string.h>#include<vector>#include<set>#include<algorithm>using namespace std;int a,b,c...原创 2020-04-02 09:37:35 · 74 阅读 · 0 评论 -
DFS
原文链接:https://www.luogu.com.cn/problem/P1180AC代码:#include<iostream>#include<string.h>#include<vector>#include<iomanip>#include<algorithm>using namespace std;doubl...原创 2020-04-01 10:02:04 · 87 阅读 · 0 评论 -
dfs
原文链接:https://www.luogu.com.cn/problem/P1061AC代码:#include<iostream>#include<string.h>#include<vector>#include<algorithm>using namespace std;int s,t,w;char st='a',et='a'...原创 2020-03-26 14:45:42 · 67 阅读 · 0 评论