Description: In NXN chess board grid placing N queens on, it can not attack each other, that any two of the Queen can not in the same row, same column or the same diagonal, asked how many kinds of pendulum method. The first line an integer T, T set of data indicated. The following T lines, each with an integer n (0 <n<=11),如上所述。
对于每组数据输出一行,即问题的答案。
To Search:
File list (Check if you may need any files):
1945_N_Queens_Question.cpp