题目:http://poj.org/problem?id=2676
Description
Sudoku is a very simple task. A square table with 9 rows and 9 columns is divided to 9 smaller squares 3x3 as shown on the Figure. In some of the cells are written decimal digits from 1 to 9. The other cells are empty. The goal is to fill the empty cells with decimal digits from 1 to 9, one digit per cell, in such way that in each row, in each column and in each marked 3x3 subsquare, all the digits from 1 to 9 to appear. Write a program to solve a given Sudoku-task.
Input

该博客介绍了如何使用深度优先搜索算法解决数独问题,详细解析了输入、输出格式,并给出了样例输入和输出。博主通过代码展示了具体的解题思路。
最低0.47元/天 解锁文章
1383

被折叠的 条评论
为什么被折叠?



