(簡單)隊列加搜索

這道題,一看就知道是搜索題。但它有三條選擇的方式移動,那麼我們就可以運用隊列的知識進行暴力的搜索(因爲必定對找到出口)。 #include<cstdio> #include<queue> #include<cstring> #include<cmath> using namespace std; int a[200010]; struct P //定義
相關文章
相關標籤/搜索