在N*N的棋盘上放置N个皇后(n<=10)而彼此不受攻击(即在棋盘的任一行,任一列和任一对角线上不能放置2个皇后),编程求解所有的摆放方法。
【输入格式】
输入:n
【输出格式】
每行输出一种方案,每种方案顺序输出皇后所在的列号,各个数之间有空格隔开。若无方案,则输出no solute!
【输入样例】Queen.in
4
【输出样例】Queen.out
2 4 1 3
3 1 4 2
Placed on the board of N* N N queens (n <= 10) and another against attack (ie any row of the board, and any one of any of a diagonal line can not be placed on the two queens), programmed to solve all display methods.
[Input Format
Input: n
[Output format]
Each line of output a scheme where each program sequentially output Queen column number, there are separated by a space between each number. Without the program, the output no solute!
[Sample input] Queen.in
4
Sample [output] Queen.out
2413
3142 (2016-05-19, MultiPlatform, 1KB, 下载1次)
告诉初学者如何快速提高fortran 使用技能的书。有利于初学者快速掌握编程的一半余额则。
Tell beginners how to quickly improve fortran use skills book. Help beginners to grasp the programming half of the balance. (2010-09-09, MultiPlatform, 8480KB, 下载2次)
本程序用于有限元方法中空间8节点单元刚度矩阵的计算,并通过文本文件实现数据间的传输,在VB中通过shell函数来调用fortran的程序,实现二者的混合编程。
This procedure for the finite element method in space for 8-node element stiffness matrix calculation, and through text files between data transmission, in VB through shell function to call fortran procedure, the two realize mixed language programming. (2007-08-23, MultiPlatform, 7KB, 下载24次)
二维屏幕上表现三维点的绘制方法——适合图形编程的数字运算方法原理
2D screen performance 3D Rendering point-- suitable for graphical programming method of calculation principle (2006-08-08, MultiPlatform, 15KB, 下载9次)
修正剑桥模型的源程序(FORTRAN编写)
amendment Cambridge model of the source (FORTRAN preparation) (2005-09-02, MultiPlatform, 3KB, 下载276次)