数独算法。输入数独谜题,输出答案。C++源程序,包含有Makefile和vs2010工程,所以Linux和Windows都能直接编译。
Input sudoku's puzzle, output the solution.
e.g.
Welcom to Sudoku's world! - @Gaozilai (wx=qq=121997204)
Pls input(space for blank): line 1 = 76 29
Pls input(space for blank): line 2 = 3 1 86
Pls input(space for blank): line 3 = 8 9 4
Pls input(space for blank): line 4 = 95 4 8
Pls input(space for blank): line 5 = 39 1 5
Pls input(space for blank): line 6 = 7 1 3
Pls input(space for blank): line 7 = 24 1
Pls input(space for blank): line 8 = 8 6 5 9
Pls input(space for blank): line 9 = 19 8
Sudoku puzzle is:
_ _ 7 6 _ 2 9 _ _
_ 3 _ 1 _ _ _ 8 6
_ 8 _ 9 _ 4 _ _ _
_ 9 5 _ 4 _ 8 _ _
_ _ _ 3 9 _ 1 _ 5
7 _ 1 _ _ _ _ 3 _
2 4 _ _ _ _ _ _ 1
8 _ 6 _ _ 5 _ 9 _
_ _ _ _ 1 9 _ _ 8
solution 1:
1 5 7 6 8 2 9 4 3
9 3 4 1 5 7 2 8 6
6 8 2 9 3 4 5 1 7
3 9 5 7 4 1 8 6 2
4 2 8 3 9 6 1 7 5
7 6 1 5 2 8 4 3 9
2 4 9 8 6 3 7 5 1
8 1 6 2 7 5 3 9 4
5 7 3 4 1 9 6 2 8
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。