广义搜索
自识别御坂
这个作者很懒,什么都没留下…
展开
-
僵尸又来了
#include <iostream>#include<queue>using namespace std;char maze[200][200];int used[200][200][10];int direct[4][2]={{-1,0},{0,1},{1,0},{0,-1}};class node{public: int x,y; int time;};int bfs(node start,int m,int n,int p,int t){ qu.原创 2021-10-23 09:14:09 · 276 阅读 · 0 评论 -
僵尸来了NOJ
#include<iostream>#include<queue>using namespace std;char maze[200][200];int direct[4][2] = { {-1,0},{0,1},{1,0},{0,-1} };int used[200][200][10];class node {public: int x, y; int t; int s;};int bfs(node start, int m, int n) { que.原创 2021-10-22 21:06:47 · 279 阅读 · 0 评论 -
NOJ 僵尸又又来了
#include<iostream>#include<queue>using namespace std;char maze[201][201] ;int direct[4][2] = { {-1,0},{0,1},{1,0},{0,-1} };class node {public: int x; int y; int b; int time;};int used[200][200][10];//注意要区分不同血量的僵尸int bfs(node st...原创 2021-10-22 21:00:24 · 277 阅读 · 0 评论