Description: 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
To Search:
File list (Check if you may need any files):
queen.cpp