BFS
qianyri
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
POJ2386 Lake Counting BFS
POJ2386 Lake Counting/*BFS 0MS 592K */#include <stdio.h>#include <utility>//pair<>#include <queue>#define x first#define y secondusing namespace std;int M,N;const i...原创 2018-04-29 17:25:16 · 234 阅读 · 0 评论 -
HDU6386 Age of Moyu BFS+优先队列
HDU6386 Age of Moyu BFS+优先队列#include<stdio.h>#include<string.h>#include<queue>using namespace std;const int MAX=1e5+5;const int INF=0x3f3f3f3f;struct E{ int to,nxt,c;...原创 2018-08-14 21:32:17 · 296 阅读 · 0 评论 -
codeforce1064 D. Labyrinth 双端队列 决策优化
codeforce1064 D. Labyrinth给定矩阵,*表示障碍,向左最多L步向右最多R步,求其所有可能能到达的点的个数双端队列 决策优先性#include<bits/stdc++.h>using namespace std;const int MAX=2e3+5;int n,m,a,b,c,d,ans;char s[MAX][MAX];struct P...原创 2018-10-14 22:03:13 · 396 阅读 · 0 评论
分享