摘要:
题目链接。分析:枚举所有的操作。将每个4*4的状态用一个 int 表示, 从0 ~ 15编号。 用BFS 枚举每一种操作。#include <cstdio>#include <cmath>#include <iostream>#include <queue>#include <cstring>using namespace std;const int maxn = (1<<16);const int ntype = (1<<16);queue<int> Q;bool vis[maxn];int st 阅读全文
posted @ 2013-06-11 10:51
Still_Raining
阅读(438)
评论(0)
推荐(0)
浙公网安备 33010602011771号