摘要:
题目链接:http://poj.org/problem?id=2488分析:简单DFS,注意字典序最小 1 #include <cstdio> 2 #include <cstring> 3 4 const int dx[] = { -1, 1, -2, 2, -2, 2, -1, 1 }; 5 const int dy[] = { -2, -2, -1, -1, 1, 1, 2, 2 }; 6 const int MAXN = 30; 7 8 struct point 9 {10 int x, y;11 };12 13 bool vis[MAXN][MAXN];14 p 阅读全文
posted @ 2012-08-24 11:30
冰鸮
阅读(182)
评论(0)
推荐(0)

浙公网安备 33010602011771号