Skip to content

Commit 1cb6abd

Browse files
authored
Update README.md
1 parent 5c1fc68 commit 1cb6abd

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,37 @@
1919
python3 LP_Sudoku.py sudoku_9x9.txt
2020
```
2121

22+
Input example
23+
24+
```
25+
9
26+
3 0 6 5 0 8 4 0 0
27+
5 2 0 0 0 0 0 0 0
28+
0 8 7 0 0 0 0 3 1
29+
0 0 3 0 1 0 0 8 0
30+
9 0 0 8 6 3 0 0 5
31+
0 5 0 0 9 0 6 0 0
32+
1 3 0 0 0 0 2 5 0
33+
0 0 0 0 0 0 0 7 4
34+
0 0 5 2 0 6 3 0 0
35+
```
36+
37+
Output example
38+
39+
```
40+
3 1 6 | 5 7 8 | 4 9 2
41+
5 2 9 | 1 3 4 | 7 6 8
42+
4 8 7 | 6 2 9 | 5 3 1
43+
-------------------------------
44+
2 6 3 | 4 1 5 | 9 8 7
45+
9 7 4 | 8 6 3 | 1 2 5
46+
8 5 1 | 7 9 2 | 6 4 3
47+
-------------------------------
48+
1 3 8 | 9 4 7 | 2 5 6
49+
6 9 2 | 3 5 1 | 8 7 4
50+
7 4 5 | 2 8 6 | 3 1 9
51+
```
52+
2253
## :pencil: Dependencies
2354

2455
gurobipy library must be installed.

0 commit comments

Comments
 (0)