正文
增加 6 行删除 6 行
4 行未改动5678910111213111 行未改动全部展开12512612712812913013113213311 行未改动1451461471481491501511521531541551561571581591601611629 行未改动17217317417517617717817918018130 行未改动4 行未改动代码```cpp#include<bits/stdc++.h>#define int long longusing namespace std;int n,x;int a[100005];signed main()111 行未改动全部展开int x,y;}pos[130][2];int d[4][2]={{-1,0},{0,-1},{1,0},{0,1}};int n,m,vis1[355][355],dis[355][355],cll=1,ex,ey,fx,fy;char a[355][355];queue<Node>q;void bfs(int ex,int ey){q.push({ex,ey});11 行未改动if(now1.x==now.x and now1.y==now.y){continue;}for(int j=0;j<4;j++){int dx=now1.x+d[j][0],dy=now1.y+d[j][1];if(dx>=1 and dx<=n and dy>=1 and dy<=m and a[dx][dy]!='#' and vis1[dx][dy]==0){vis1[dx][dy]=1;dis[dx][dy]=dis[now.x][now.y]+1;q.push({dx,dy});}}}}9 行未改动q.push({dx,dy});}}}}return;}signed main()30 行未改动4 行未改动5678910111213111 行未改动全部展开12512612712812913013113213311 行未改动1451461471481491501511521531541551561571581591601611629 行未改动17217317417517617717817918018130 行未改动4 行未改动代码```cpp#include<bits/stdc++.h>#define int long longusing namespace std;int n,x;int a[100005];signed main()111 行未改动全部展开int x,y;}pos[130][2];int d[4][2]={{-1,0},{0,-1},{1,0},{0,1}};int n,m,vis1[355][355],dis[355][355],cll=1,ex,ey,fx,fy;char a[355][355];queue<Node>q;void bfs(int ex,int ey){q.push({ex,ey});11 行未改动if(now1.x==now.x and now1.y==now.y){continue;}for(int j=0;j<4;j++){int dx=now1.x+d[j][0],dy=now1.y+d[j][1];if(dx>=1 and dx<=n and dy>=1 and dy<=m and a[dx][dy]!='#' and vis1[dx][dy]==0){vis1[dx][dy]=1;dis[dx][dy]=dis[now.x][now.y]+1;q.push({dx,dy});}}}}9 行未改动q.push({dx,dy});}}}}return;}signed main()30 行未改动