Bucket Brigade
题面
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200224191847510.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2hfYmJ5,size_16,color_FFFFFF,t_70)
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200224191917118.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2hfYmJ5,size_16,color_FFFFFF,t_70)
题目分析
BFS模板题
代码
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<queue>
#include<cmath>
using namespace std;
const int INF=100000000;
typedef pair<int ,int> P;
char m[20][20];
int sx,sy;
int gx,gy;
int d[20][20];
int dx[4]=