2012年4月11日

TLE: HDOJ 1010 Tempter of the Bone

摘要: 超时了,dfs写的是对的(通过了discuss中一块强大的数据)谁说TLE的代码没有用?# include <stdio.h># include <string.h>typedef struct{ int x, y;}Point;const Point d[4] = {{-1,0}, {0,1}, {0,-1}, {1,0}};int N, M, T, tot, ok;char m[8][8];int dfs(Point s, int dir);int can_move(Point s, int dir);void solve(Point s, Point e, int 阅读全文

posted @ 2012-04-11 11:59 getgoing 阅读(215) 评论(0) 推荐(0) 编辑

导航