摘要: 算法:1. 随机填充中间的九宫格2. 通过交换行、列,填充中间的九宫格的上、下、左、右四个九宫格3. 同样方式填充四个角上的九宫格4. 根据难度随机挖去数C++源代码如下:#include <ctime>#include <cstring>#include <iostream>#include <vector>#include <algorithm> using namespace std; const int N = 9;vector<int> src;int table[N][N]; void ouput(){ for 阅读全文
posted @ 2012-09-03 17:23 qwertWZ 阅读(4501) 评论(0) 推荐(0) 编辑