2011年10月18日

poj-2170 Lattice Animals *****

摘要: /* * 2170.cpp * * 很繁的一个题。。。 * * dfs + hash * 这个速度很慢, 不过答案应该都是对的, 先贴上来吧。。 最近没时间做了 。 以后再改。。 * * 可以改进的有 搜索方式 和 hash函数 * * Created on: 2011-10-17 */#include <cstdio>#include <cstring>using namespace std;const int maxp = 5000 + 10;const int maxn = 25, z = 12;const int hashNum = 19997;const in 阅读全文

posted @ 2011-10-18 22:49 龙豆 阅读(688) 评论(0) 推荐(0)

导航