洛谷普及练习场-广度优先搜索

P1162 填涂颜色node #include<bits/stdc++.h> using namespace std; int mp[35][35]; bool inq[35][35]; int n; pair<int,int>Node(0,0); int dr[8][2]= { {-1,0},{0,-1},{0,1},{1,0} }; void BFS(){ queue<pai
相关文章
相关标签/搜索