Example #1
0
int main()
{
	Sudoku ss;
	int num;
	int i,j,k;
	int count = 0;
	while(cin >> num)
	{
		count++;
		if(count!=1 && ans_count != 0)
			cout << endl << endl;
		else if(count !=1)
			cout << endl;
		for(i=0; i<9; i++)
		{
			for(j=0; j<9; j++)
			{
				su[i][j] = 0;
				su3[i][j][0] = 0;
				ans[i][j] = 0;
				su2[i][j] = 0;
				for(k=1; k<10; k++)
				{
					su3[i][j][k] = 1;
				}
			}
		}
		have_zero = false;
		ans_count = 0;
		ss.readIn(num);
		ss.solve(num);
	}
}
Example #2
0
int main(){
	Sudoku ss;
	ss.readIn();
	ss.solve();

	return 0;
}
Example #3
0
int main(){
	Sudoku ss;
	ss.readIn();
	ss.transform();
	return 0;

}
Example #4
0
int main()
{
	Sudoku sudoku;
	sudoku.readIn();
	sudoku.solve();
	
	return 0;
}
Example #5
0
int main()
{
	Sudoku sdk;
	sdk.readIn();
	sdk.solve();
	system("PAUSE");
	return 0;
}
Example #6
0
int main(int argc, const char * argv[]) {
    
    Sudoku ss;
    ss.readIn();
    ss.solve();
    
    return 0;
}
Example #7
0
int main(){
	Sudoku ss;
	ss.readIn();
//	ss.rotate(83);
//	ss.flip(1);
//	ss.changeNum(3,6);
//	ss.changeRow(0,2);
//	ss.changeCol(0,2);
	ss.solve();
	return 0;
}
Example #8
0
int main(){
    Sudoku ss;
    ss.readIn();
    ss.transform();
    //int a[9]={1,1,3,4,5,6,7,8,9};
	//cout<< ss.isCorrect();
	//for(int i=0;i<9;i++)
    //cout<<ss.isCorrect_single(7)<<"\n";
    //ss.printout();
    return 0;
}
Example #9
0
int main() {
	Sudoku sudo;
	sudo.readIn();
	sudo,solve();
	return 0;
}
Example #10
0
int main(void)
{
	Sudoku ss;
	ss.readIn();
	return 0;
}