Skip to content

sagiii/sudoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sudoku

Sudoku solver.

Build

make

Run

./sudoku <0:silent=default, 1:verbose, 2:verbose&slow>
<paste problem here. The app simply waits for 9x9 numbers by `cin >>`.>

Examples

4 0 0 8 0 0 0 7 0
0 9 3 0 0 4 8 0 0
0 0 5 0 6 2 0 0 0
0 3 0 0 8 6 0 0 2
9 0 0 0 0 0 0 0 8
8 0 0 3 9 0 0 6 0
0 0 0 5 3 0 6 0 0
0 0 7 4 0 0 3 5 0
0 5 0 0 0 7 0 0 4

3 9 0 0 0 0 8 1 0
0 0 0 8 0 0 0 4 0
0 0 0 0 9 0 5 0 6
0 0 8 6 0 7 0 0 0
4 0 0 0 0 0 0 0 5
0 0 0 4 0 3 6 0 0
9 0 3 0 7 0 0 0 0
0 8 0 0 0 9 0 0 0
0 2 5 0 0 0 0 8 1

0 0 0 0 6 0 9 0 0
0 0 9 0 0 0 0 8 0
0 0 0 0 9 8 4 6 0
0 1 0 0 0 4 7 0 8
0 0 7 3 0 1 6 0 0
3 0 2 6 0 0 0 5 0
0 6 1 5 4 0 0 0 0
0 2 0 0 0 0 8 0 0
0 0 5 0 1 0 0 0 0

0 0 0 0 0 0 4 8 9
6 0 0 0 0 0 0 0 0
0 0 0 9 8 5 0 0 0
0 0 9 0 0 0 0 0 4
0 0 1 2 4 3 0 0 7
0 0 3 0 0 0 0 0 2
0 3 0 0 7 0 0 0 0
0 1 0 0 9 0 0 0 0
0 4 0 0 1 0 5 2 6

0 3 0 0 1 0 0 0 0
0 0 0 7 0 3 5 9 0
0 6 0 0 4 0 0 0 0
5 0 6 2 9 0 4 3 0
0 4 0 0 0 0 0 0 2
0 7 0 0 0 0 0 0 5
0 0 0 3 0 0 0 0 8
8 0 1 0 2 4 0 0 0
0 2 0 8 0 0 0 0 4

About

Sudoku solver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published