![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
BFS
LOI_pingxing
这个作者很懒,什么都没留下…
展开
-
[codevs2168]生物入侵者
4.1考试T4原创 2017-04-01 14:55:14 · 498 阅读 · 0 评论 -
[codevs1099]字串变换 双向BFS
题目←qbxt里双向BFS的例题…… 网上好多题解用的是STL黑科技?抱着练码力的心态手写了队列+find+replace; 顺便map大法好啊#include<iostream>#include<cstdio>#include<algorithm>#include<cctype>#include<cstring>#include<map>using namespace std;c原创 2017-10-11 08:51:47 · 354 阅读 · 1 评论 -
[队内测试Day10.10]贪心+模拟+BFS
10.10考试原创 2017-10-10 18:22:31 · 278 阅读 · 0 评论 -
[codevs1961]躲避大龙
DZJsaid:图论也是一种DP嘛……所以图论里的状态也很重要原创 2017-10-13 16:11:35 · 249 阅读 · 0 评论 -
[codevs1004]四子连棋
题目←没什么思维难度的搜索,但比较锻炼思路的清晰程度 外加: 1、x & (1 << j),x第j位为1,得到的是(1 << j) 2、’||’、’&&’在使用时,对下面的影响一定要想清楚#include<iostream>#include<cstdio>#include<algorithm>#include<queue>using namespace std;const int M原创 2017-11-09 08:13:40 · 435 阅读 · 0 评论