HDU1010 Tempter of the Bone dfs(奇偶减枝)
摘要:
直接搜索会超时,需要减枝(奇偶减枝)。#include#includeint n,m,t;char map[7][7];int x0,y0,x1,y1; int flag; int abs(int a) { a>0?:a=-a; return a;}void dfs(int t... 阅读全文
posted @ 2014-04-17 20:44 >_< 阅读(154) 评论(0) 推荐(0) 编辑