摘要: http://poj.org/problem?id=1753以前做过的一道题目,可是拿过来在做就没思路了。还是看了以前做的。唉。。悲剧啊。。思路:首先将整个4*4的棋盘,压缩到一个一维数组中,然后对每一个点的两种状态(翻转或者不翻转)枚举。枚举完所有的情况,最后查看是否能够达到目标。View Code #include <cstdio>#include <cstring>#include <iostream>#define maxn 10#define inf 99999999using namespace std;char str[maxn][maxn]; 阅读全文
posted @ 2012-02-22 21:14 E_star 阅读(245) 评论(0) 推荐(0)