![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法-bfs
FawkesLi
这个作者很懒,什么都没留下…
展开
-
ch 2907宽搜
#include <cstdio> #include <iostream> #include <iomanip> #include <string> #include <cstdlib> #include <cstring> #include <queue> #include <set> #include <vector> #include <map> #include <algor原创 2020-06-21 22:04:34 · 119 阅读 · 0 评论 -
ch 2906 宽搜
#include <cstdio> #include <iostream> #include <iomanip> #include <string> #include <cstdlib> #include <cstring> #include <queue> #include <set> #include <vector> #include <map> #include <algor原创 2020-06-21 21:41:44 · 152 阅读 · 0 评论 -
poj 2046 bfs+构造局面的hash值
对于一个长度为15数组,每个元素1<=ai<=15.问你这个数组的hash值。 如果对ai没有其他限制,那么这个数组的hash值应该这样计算 ll hash = 0; for(int i = 0;i<15;i++) hash+=a[i],hash*=15; 如果ai两两之间不相等,也就是1到15都出现且只出现一次,那么这个数组的hash值应该这样计算 ll hash =...原创 2020-04-02 17:27:12 · 139 阅读 · 0 评论