示例#1
0
文件: main.cpp 项目: wsasocket/sudoku
int main() {
    Sudoku sudoku;

    sudoku.Load_data();
    sudoku.PreCalculate();
    cursor = sudoku.begin();

    sudoku.Print();
    long long start = getSystemTime();
    solve(sudoku);
    long long finish = getSystemTime();
    sudoku.Print();

    cout << "Total run time: " <<finish-start<< " ms"<<endl;
    return 0;
}
示例#2
0
	bool checkRows(const Sudoku &s)
	{
		return std::all_of(s.begin(), s.end(),
				[this](const Row &r){ return checkList(r, "in row"); });
	}