(简单)队列加搜索

这道题,一看就知道是搜索题。但它有三条选择的方式移动,那么我们就可以运用队列的知识进行暴力的搜索(因为必定对找到出口)。 #include<cstdio> #include<queue> #include<cstring> #include<cmath> using namespace std; int a[200010]; struct P //定义
相关文章
相关标签/搜索