摘要: #include#include#include#include#define max(a, b)(a > b ? a : b)#define N 30char maps[N][N];int m, n, ans;int d[4][2] = {{0, 1}, {0, -1}, {1, 0}, {-1,... 阅读全文
posted @ 2015-05-27 19:26 午夜阳光~ 阅读(179) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#define max(a, b)(a > b ? a : b)#define N 30int a[N], vis[N], n, k, f;void DFS(int s, int m, int d)//s为搜索起点 m为已组成的正方体的... 阅读全文
posted @ 2015-05-27 18:22 午夜阳光~ 阅读(135) 评论(0) 推荐(0) 编辑