随笔分类 -  算法-广搜(DFS)

摘要:https://www.luogu.com.cn/problem/P1443 #include <stdio.h> #include <stdlib.h> #include <math.h> using namespace std; int s[400][400]; typedef struct q 阅读全文
posted @ 2023-02-08 10:02 MITE's_BKY 阅读(24) 评论(0) 推荐(0) 编辑
摘要:题目: https://www.luogu.com.cn/problem/P1162 #include <stdio.h> #include <stdlib.h> using namespace std; int board[30][30]; int vis[30][30]; typedef str 阅读全文
posted @ 2023-02-05 22:45 MITE's_BKY 阅读(93) 评论(0) 推荐(0) 编辑
摘要:题目: https://www.luogu.com.cn/problem/P1135 #include <stdio.h> #include <math.h> int q[201]; //用队列维护,经常的事 int h, t; //tail ,hair int s[201]; //到i的距离 in 阅读全文
posted @ 2023-02-05 21:59 MITE's_BKY 阅读(10) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示