poj 2965 枚举搜索
摘要:
这题跟POJ1753 flip game 思想一样。。唯一不同得是这题要保存方案。用c++一直超时,g++500多ms.View Code #include <stdio.h>#include <string.h>#include <iostream>#include <queue>#include <stack>using namespace std;int visit[70000];char mp[1100];struct node{ int state; int num;}p;struct pnode{ int x, y;}px 阅读全文
posted @ 2012-07-08 19:58 more think, more gains 阅读(139) 评论(0) 推荐(0) 编辑