-
Notifications
You must be signed in to change notification settings - Fork 0
/
output.txt
65 lines (61 loc) · 1.51 KB
/
output.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Solving inputExample.txt...
INPUT SUDOKU
+-----------------------+
| 1 0 0 | 0 0 7 | 0 9 0 |
| 0 3 0 | 0 2 0 | 0 0 8 |
| 0 0 9 | 6 0 0 | 5 0 0 |
|-------+-------+-------|
| 0 0 5 | 3 0 0 | 9 0 0 |
| 0 1 0 | 0 8 0 | 0 0 2 |
| 6 0 0 | 0 0 4 | 0 0 0 |
|-------+-------+-------|
| 3 0 0 | 0 0 0 | 0 1 0 |
| 0 4 0 | 0 0 0 | 0 0 7 |
| 0 0 7 | 0 0 0 | 3 0 0 |
+-----------------------+
SOLVED SUDOKU
+-----------------------+
| 1 6 2 | 8 5 7 | 4 9 3 |
| 5 3 4 | 1 2 9 | 6 7 8 |
| 7 8 9 | 6 4 3 | 5 2 1 |
|-------+-------+-------|
| 4 7 5 | 3 1 2 | 9 8 6 |
| 9 1 3 | 5 8 6 | 7 4 2 |
| 6 2 8 | 7 9 4 | 1 3 5 |
|-------+-------+-------|
| 3 5 6 | 4 7 8 | 2 1 9 |
| 2 4 1 | 9 3 5 | 8 6 7 |
| 8 9 7 | 2 6 1 | 3 5 4 |
+-----------------------+
Time Taken: 5.3405s
Solving inputExample2.txt...
INPUT SUDOKU
+-----------------------+
| 9 0 0 | 5 0 8 | 0 0 7 |
| 0 8 0 | 3 0 2 | 9 0 5 |
| 0 5 4 | 0 0 0 | 0 8 0 |
|-------+-------+-------|
| 0 7 0 | 6 8 0 | 0 3 2 |
| 1 0 0 | 0 0 4 | 0 0 8 |
| 5 0 0 | 2 1 9 | 0 6 0 |
|-------+-------+-------|
| 0 0 0 | 9 0 6 | 0 0 0 |
| 7 2 6 | 0 0 1 | 0 0 0 |
| 0 0 0 | 0 0 0 | 0 0 0 |
+-----------------------+
UPDATED SUDOKU
+-----------------------+
| 9 1 3 | 5 6 8 | 4 2 7 |
| 6 8 7 | 3 4 2 | 9 1 5 |
| 2 5 4 | 1 9 7 | 6 8 3 |
|-------+-------+-------|
| 4 7 9 | 6 8 5 | 1 3 2 |
| 1 6 2 | 7 3 4 | 5 9 8 |
| 5 3 8 | 2 1 9 | 7 6 4 |
|-------+-------+-------|
| 3 4 5 | 9 2 6 | 8 7 1 |
| 7 2 6 | 8 5 1 | 3 4 9 |
| 8 9 1 | 4 7 3 | 2 5 6 |
+-----------------------+
CSP is already solved by pre-processing!
Time Taken: 0.0174s