搜索
Viko_ReCode
这个作者很懒,什么都没留下…
展开
-
UVa 11283
#include #include const int N = 6; bool vis[N][N]; char s[N][N], word[18]; bool dfs(int x, int y, int k) { if(k>=strlen(word)) return true; if(s[x][y]!=word[k] || vis[x][y]) return false;原创 2013-07-27 21:26:47 · 483 阅读 · 0 评论 -
CodeForces 328B (反向BFS)
题目链接:http://codeforces.com/problemset/problem/329/B #include const int inf = (int)1e9; const int dx[4] = {0, 1, 0, -1}; const int dy[4] = {1, 0, -1, 0}; char s[1111][1111]; int x[1111111], y[1111原创 2013-07-28 03:42:14 · 434 阅读 · 0 评论