![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
图论
wenjie2012
这个作者很懒,什么都没留下…
展开
-
poj 1659 Frogs' Neighborhood
#include #include #include #include using namespace std;#define N 20struct node{ int degree; int index;}v[N];int map[N][N];int n;bool cmp(node a,node b){ return a.degree>b.原创 2013-01-27 11:47:54 · 236 阅读 · 0 评论 -
hdu 1254
http://acm.hdu.edu.cn/showproblem.php?pid=1254 BFS+hash,广搜路线,每次小人走都要哈希一下箱子的位置,这样保证走的时候状态是不一样的,然后要注意,这里要用优先队列,时间短的要先弹出来,这个地方值得琢磨,WA了n次!#include #include #include #include #include using nam原创 2013-01-29 17:55:01 · 311 阅读 · 0 评论