摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1240三维的BFS 但是一开始理解错题意了 哎。。。 怎么犯这种错误捏代码:#include<iostream>#include<cstdio>#include<string>#include<cstring>using namespace std;char a[12][12][12];int visit[12][12][12];//行列int bx,by,bz,ex,ey,ez,step,N;int XX[6]={1,-1,0,0,0,0},YY[6]={0, 阅读全文
posted @ 2011-11-22 21:37 快乐. 阅读(212) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1010一道深搜+剪枝 纠结了一晚上加一上午 。。。开始自己写的代码没过 后来又看了xcy学长(xcyx学长的代码很清晰 简洁 实在佩服 在此表示崇拜)的 结题报告写的 中间还是改了很长时间错误 足见代码功底有多差了 代码:#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>using namespace std;int visit[11][11], XX[4]={1,-1,0 阅读全文
posted @ 2011-11-22 11:51 快乐. 阅读(186) 评论(0) 推荐(0) 编辑