c语言(Unix)英文

来源:百度知道 编辑:UC知道 时间:2024/05/13 14:23:21
http://www.ece.arizona.edu/~ece175/assignments/assignment08.pdf
问题在这个页面的pdf文件
希望予以解答..

1.The file "sudoku-solution.txt" contains integer values for a Sudoku puzzle -- two dimensional integer array with 9 rows and 9 columns. Write a program that reads this file as input and prints out if the file provides a proper solution to the Sudoku puzzle or not.
1.文件“sudoku-solution.txt”包含数独游戏的整型数,该二维整型数组有9行9列。编写一个程序读取该文件中的数,并判断是否能构成一个数独;
For the rules of Sudoku, check Wikipedia. [ http://en.wikipedia.org/wiki/Sudoku ]
查看维基网站:http://en.wikipedia.org/wiki/Sudoku可以获取数独游戏的相关规则

Example File Format:
例子:
1 2 3 4 5 6 7 8 9
4 5 6 7 8 9 1 2 3
7 8 9 1 2 3 4 5 6
2 3 4 5 6 7 8 9 1
5 6 7 8 9 1 2 3 4
8 9 1 2 3 4 5 6 7
3 4 5 6 7 8 9 1 2
6 7 8 9 1 2 3 4 5
9 1 2 3 4 5 6 7 8

Result: Solution is Correct!
结果:解答正确