![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
搜索
Y251673671
这个作者很懒,什么都没留下…
展开
-
hdu 1732推箱子
<br />//2478723 2010-05-21 23:28:53 Accepted 1732 156MS 20656K 2718 B C++ <br />//用8维的hash标记人坐标3个箱子的坐标 主要是人前方为箱子箱子前面再出现箱子容易漏掉考虑<br />//这里bool 的hash可以比int少4倍的空间 开成int会MLE <br />#include<iostream><br />#include<queue><br />#include<cstdio><br />#include<str原创 2010-06-13 16:15:00 · 843 阅读 · 0 评论 -
hdu 1026 优先队列 + 路径保存
#include #include #includeusing namespace std;#define maxsize 105char map[maxsize][maxsize];bool hash[maxsize][maxsize];int n,m;struct node{ int x,y; int time; int fro; int cost;};bool operator { return a.time > b.time;}node N,P,p[10010],path[1原创 2010-06-13 16:39:00 · 491 阅读 · 0 评论 -
hdu 1175
<br />#include<iostream><br />#include<queue><br />using namespace std;<br />struct node{<br /> int x,y;<br /> int time;<br /> int d;<br />};<br />int map[1010][1010];<br />int hash[1010][1010];<br />int dir[4][2] = {{1,0},{-1,0},{0,-1},{0,1}};<br />int m,原创 2010-06-13 16:32:00 · 394 阅读 · 0 评论 -
hdu 1180 诡异的楼梯
<br />//楼梯有多个 第一次申请了一个NODE LOUTI 来保存一直没找出哪里错 <br />#include <iostream><br />#include <queue><br />#include<cstdio><br />using namespace std;<br />char map[21][21];<br />struct node{<br /> int x,y;<br /> int time;<br /> char c;<br />};<br />int s原创 2010-06-13 16:40:00 · 591 阅读 · 0 评论