文章
1
粉丝
402
获赞
0
访问
11.2k
 
#include<iostream>
#include<queue>
using namespace std;
#define max 105
struct point {
    int x;
    int y;
    point(int a,int b):x(a),y(b) {}
};
char map[max][max];
int op[4][2]= {-1,0,0,1,1,0,0,-1}; //上右下左
int T,n,m,t;
int gx, gy,sx,sy;
bool BFS() {
    queue<point> gqu;
    queue<point> squ;
    squ.push(point(sx,sy));
    gqu.push(point(gx,gy));
    while(t--) {
        int gsize = gqu.size();
        //毒气
        while(gsize--) {
            point gcur = gqu.front();
            gqu.pop();
            for(int i=0; i<4; i++) {
    &...
登录后发布评论
暂无评论,来抢沙发