摘要:
http://poj.org/problem?id=3009 其实一开始就想把dir当作参数,根据map条件搜索,但是却是在递归中用while处理的,处理不好map由0变1的回溯. 蛋疼的代码,看着就纠结。。code:#include<cstdio>#include<cstring>#defineMin(a,b)a>b?b:a#defineMAX1e+6inttur[4][2]={0,1,0,-1,1,0,-1,0};intmap[21][21];intw,h,ans,sx,sy,ex,ey;boolcheck(intx,inty){if(x<0||x> 阅读全文
posted @ 2012-03-16 19:48
追逐.
阅读(252)
评论(1)
推荐(1)
浙公网安备 33010602011771号