文章

1

粉丝

402

获赞

0

访问

8.8k

头像
生化危机求助
学习交流
发布于2020年5月2日 09:28
阅读数 8.8k

1142生化危机2 有人帮忙看看吗?我沿用了ac的思想为什么还不行

#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++) {
    &...

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发