C语言解决数独

结果:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
input:
0 2 0 0 9 0 8 0 6
0 0 1 0 0 0 2 0 0
5 0 0 0 1 0 0 3 0
0 0 3 0 0 1 0 2 0
2 5 0 0 6 0 9 0 0
0 0 7 0 0 8 0 5 0
6 0 0 0 5 0 0 9 0
0 0 5 0 0 0 3 0 0
0 3 0 0 7 0 5 0 4

ans:
3 2 4 7 9 5 8 1 6
8 9 1 6 3 4 2 7 5
5 7 6 8 1 2 4 3 9
9 6 3 5 4 1 7 2 8
2 5 8 3 6 7 9 4 1
4 1 7 9 2 8 6 5 3
6 8 2 4 5 3 1 9 7
7 4 5 1 8 9 3 6 2
1 3 9 2 7 6 5 8 4
repeat times: 6
Hello world!

源程序:https://github.com/Emir-Liu/MyProjectSudoku