- 博客(1)
- 收藏
- 关注
原创 长草 bfs
长草 长草 蓝桥链接 问题描述 用bfs #include <bits/stdc++.h> using namespace std; int n, m; char mp[1001][1001]; int vis[1000][1000]; struct node { int x; int y; }; int to[4][2] = { {0,1},{1,0},{0,-1},{-1,0} }; queue<node>q; void bfs() { int t = q.size();
2022-03-29 21:40:46
270
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人