2011年7月19日

hdu 1010 Tempter of the Bone

摘要: 这是一道关于迷宫的搜索题,注意看懂题意:必须在time=T的时候门才开,这个时候必须准时到达door才能survive,既不能早了,也不能晚了,有一个细节用到了奇偶剪枝原理#include<iostream>#include<cstdio>#include<cmath>#include<string.h>using namespace std;int N,M,T,OK;int startx,starty,endx,endy;char maze[8][8];int mark[8][8];int X[4]={1,-1,0,0};int Y[4]={0 阅读全文

posted @ 2011-07-19 13:31 lonelycatcher 阅读(186) 评论(0) 推荐(0) 编辑

导航