qipan

所属分类:数值算法/人工智能
开发工具:C/C++
文件大小:1KB
下载次数:4
上传日期:2004-12-11 14:54:31
上 传 者xinyangt
说明:  棋盘填数问题 在N*N的棋盘上(1<=N<=10)请填入1,2,...N2共N2个数,使得任意两个相邻的数之和为素数。 填写的方案如: 在这里我们约定:左上角的格子里必须放数字1。 输出:如有多种解,则输出第一行,第一列之和为最小的排列方案;若无解,则输出“NO Answer”
(chessboard fill in N* N on the chessboard (1LT; = Nlt; = 10) Please insert 1,2, ... N2 N2 total number, making any two adjacent few and as a prime number. Fill in the program, such as : Here, we agreed : the upper left corner of the grid must be put in the yard a figure. Output : For a variety of solutions, the first line of output, the first out and as a program with the smallest; If not solved, then the output "NO Answer")

文件列表:
1.c (1160, 2003-11-06)

近期下载者

相关文件


收藏者