摘要:
http://poj.org/problem?id=3279一般都玩过的游戏翻转快,一块砖块翻开,其他周围四块跟它自己变的颜色相反如果直接搜索的话,2^(15*15)铁定超时了其实只要枚举2^15第一行,然后在此基础上贪心即第一行为map[1][j]==1,下面也为 1View Code #include<stdio.h>#include<iostream>#include<algorithm>#include<string.h>#include<cmath>using namespace std;int n,m,ret=0;bool 阅读全文
posted @ 2011-11-29 21:56 huhuuu 阅读(210) 评论(0) 推荐(0)
浙公网安备 33010602011771号