20240128 上课

20240128 上课

#include <bits/stdc++.h>
using namespace std;

const int R = 8;
const int C = 10;
const int BR = 0;
const int BC = 0;
const int ER = 7;
const int EC = 9;

int dr[4] = {0, 1, 0, -1};
int dc[4] = {1, 0, -1, 0};

int maze[R][C] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 1, //
0, 1, 1, 1, 0, 1, 1, 0, 1, 1, //
0, 1, 1, 1, 0, 1, 1, 0, 1, 1, //
0, 1, 1, 1, 0, 0, 1, 0, 1, 1, //
0, 1, 0, 1, 0, 1, 1, 0, 1, 1, //
0, 1, 1, 1, 0, 0, 0, 0, 1, 1, //
0, 1, 1, 1, 0, 0, 0, 0, 0, 1, //
0, 0, 1, 0, 0, 1, 1, 1, 0, 0};

struct Point {
int r, c, step, pre;
};

© 版权声明
THE END
喜欢就支持一下吧
点赞14 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容