新人们加油,就优先队列有点难度,其它对新手很有学习价值下面是我今晚刚刚刷的几道基本搜索题hdu 1010 Tempter of the Bone经典搜索入门题,DFS,本题考查要点:剪枝,奇偶性剪枝View Code #include<stdio.h>#include<stdlib.h>int m,n,t;char map[8][8];int dir[4][2]={{1,0},{-1,0},{0,-1},{0,1}};int ex,ey,sx,sy,ok;//e表示end,终点,s表示start,出发点,ok用来判断是否在规定时间到达void dfs(int x,int Read More
posted @ 2012-05-21 22:30
To be an ACMan
Views(5271)
Comments(5)
Diggs(0)

浙公网安备 33010602011771号