# 数据结构与算法-递归（回溯法）

int Fibonacci(int n) {
if(n <= 1) {
return 1;
}

return Fibonacci(n- 1) + Fibonacci(n - 2);;
}

void ArrangeMent(int n, char* str) {
int str_length = strlen(str);
int i;

if(n >= str_length) {
puts(str);
}else {
for(i = n; i < str_length; i++) {
if(i!=n && str[i]==str[n]) {//有重复字符时，跳过
continue;
}
swapChar(str + i, str + n);
ArrangeMent(n + 1, str);
swapChar(str + i, str + n);
}
}
}

//递归求二叉树的高度
int PostTreeDepth(BinaryTree *root) {
int h_left;
int h_right;

if(root == NULL) {
return 0;
}else {
h_left = PostTreeDepth(root->LeftChild);
h_right = PostTreeDepth(root->RightChild);

return (h_left > h_right ? h_left : h_right) + 1;
}
}

void EightQueen(int (*chess)[EIGHT], int row) {
int col;

if(row >= EIGHT) {
showEightQueen(chess);
return;
}

for(col = 0; col < EIGHT; col++) {  //这里是循环 8次的递归 是对于列
if(isSafe(chess, row, col)) {
chess[row][col] = 1;
EightQueen(chess, row + 1); //递归到下一行
chess[row][col] = 0;
}
}

}
boolean isSafe(int (*chess)[EIGHT], int row, int col) {
int i;
int j;

//The upper left
for(i = row - 1, j = col - 1; i >= 0 && j >= 0; i--, j--) {
if(chess[i][j]) {
return false;
}
}
//Just above
for(i = row - 1, j = col; i >= 0; i--) {
if(chess[i][j]) {
return false;
}
}
//The upper right

for(i = row - 1, j = col + 1; i >= 0 && j < EIGHT; i--, j++) {
if(chess[i][j]) {
return false;
}
}

return true;
}


The 1 solution is :
1  0  0  0  0  0  0  0
0  0  0  0  1  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  0  1  0  0
0  0  1  0  0  0  0  0
0  0  0  0  0  0  1  0
0  1  0  0  0  0  0  0
0  0  0  1  0  0  0  0

The 2 solution is :
1  0  0  0  0  0  0  0
0  0  0  0  0  1  0  0
0  0  0  0  0  0  0  1
0  0  1  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  0  1  0  0  0  0
0  1  0  0  0  0  0  0
0  0  0  0  1  0  0  0

The 3 solution is :
1  0  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  0  1  0  0  0  0
0  0  0  0  0  1  0  0
0  0  0  0  0  0  0  1
0  1  0  0  0  0  0  0
0  0  0  0  1  0  0  0
0  0  1  0  0  0  0  0

The 4 solution is :
1  0  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  0  0  1  0  0  0
0  0  0  0  0  0  0  1
0  1  0  0  0  0  0  0
0  0  0  1  0  0  0  0
0  0  0  0  0  1  0  0
0  0  1  0  0  0  0  0

The 5 solution is :
0  1  0  0  0  0  0  0
0  0  0  1  0  0  0  0
0  0  0  0  0  1  0  0
0  0  0  0  0  0  0  1
0  0  1  0  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  0  0  1  0  0  0

The 6 solution is :
0  1  0  0  0  0  0  0
0  0  0  0  1  0  0  0
0  0  0  0  0  0  1  0
1  0  0  0  0  0  0  0
0  0  1  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  0  1  0  0
0  0  0  1  0  0  0  0

The 7 solution is :
0  1  0  0  0  0  0  0
0  0  0  0  1  0  0  0
0  0  0  0  0  0  1  0
0  0  0  1  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  0  1  0  0
0  0  1  0  0  0  0  0

The 8 solution is :
0  1  0  0  0  0  0  0
0  0  0  0  0  1  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  0  1  0  0  0  0
0  0  0  0  0  0  0  1
0  0  1  0  0  0  0  0
0  0  0  0  1  0  0  0

The 9 solution is :
0  1  0  0  0  0  0  0
0  0  0  0  0  1  0  0
0  0  0  0  0  0  0  1
0  0  1  0  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  1  0  0  0  0
0  0  0  0  0  0  1  0
0  0  0  0  1  0  0  0

The 10 solution is :
0  1  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  1  0  0  0  0  0
0  0  0  0  0  1  0  0
0  0  0  0  0  0  0  1
0  0  0  0  1  0  0  0
1  0  0  0  0  0  0  0
0  0  0  1  0  0  0  0

The 11 solution is :
0  1  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  0  0  1  0  0  0
0  0  0  0  0  0  0  1
1  0  0  0  0  0  0  0
0  0  0  1  0  0  0  0
0  0  0  0  0  1  0  0
0  0  1  0  0  0  0  0

The 12 solution is :
0  1  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  0  1  0  0
1  0  0  0  0  0  0  0
0  0  1  0  0  0  0  0
0  0  0  0  1  0  0  0
0  0  0  0  0  0  1  0
0  0  0  1  0  0  0  0

The 13 solution is :
0  0  1  0  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  0  0  1  0  0  0
0  0  0  0  0  0  0  1
0  1  0  0  0  0  0  0
0  0  0  1  0  0  0  0
0  0  0  0  0  1  0  0

The 14 solution is :
0  0  1  0  0  0  0  0
0  0  0  0  1  0  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  0  1
1  0  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  0  1  0  0  0  0
0  0  0  0  0  1  0  0

The 15 solution is :
0  0  1  0  0  0  0  0
0  0  0  0  1  0  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  0  1  0  0
0  0  0  1  0  0  0  0
0  0  0  0  0  0  1  0
1  0  0  0  0  0  0  0

The 16 solution is :
0  0  1  0  0  0  0  0
0  0  0  0  1  0  0  0
0  0  0  0  0  0  1  0
1  0  0  0  0  0  0  0
0  0  0  1  0  0  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  0  1  0  0

The 17 solution is :
0  0  1  0  0  0  0  0
0  0  0  0  1  0  0  0
0  0  0  0  0  0  0  1
0  0  0  1  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  1  0  0  0  0  0  0
0  0  0  0  0  1  0  0

The 18 solution is :
0  0  1  0  0  0  0  0
0  0  0  0  0  1  0  0
0  1  0  0  0  0  0  0
0  0  0  0  1  0  0  0
0  0  0  0  0  0  0  1
1  0  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  0  1  0  0  0  0

The 19 solution is :
0  0  1  0  0  0  0  0
0  0  0  0  0  1  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  1  0
1  0  0  0  0  0  0  0
0  0  0  1  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  1  0  0  0

The 20 solution is :
0  0  1  0  0  0  0  0
0  0  0  0  0  1  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  0  0  1  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  1  0  0  0  0

The 21 solution is :
0  0  1  0  0  0  0  0
0  0  0  0  0  1  0  0
0  0  0  1  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  1  0  0  0
0  0  0  0  0  0  1  0
0  1  0  0  0  0  0  0

The 22 solution is :
0  0  1  0  0  0  0  0
0  0  0  0  0  1  0  0
0  0  0  1  0  0  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  1  0  0  0
0  0  0  0  0  0  1  0
1  0  0  0  0  0  0  0

The 23 solution is :
0  0  1  0  0  0  0  0
0  0  0  0  0  1  0  0
0  0  0  0  0  0  0  1
1  0  0  0  0  0  0  0
0  0  0  1  0  0  0  0
0  0  0  0  0  0  1  0
0  0  0  0  1  0  0  0
0  1  0  0  0  0  0  0

The 24 solution is :
0  0  1  0  0  0  0  0
0  0  0  0  0  1  0  0
0  0  0  0  0  0  0  1
1  0  0  0  0  0  0  0
0  0  0  0  1  0  0  0
0  0  0  0  0  0  1  0
0  1  0  0  0  0  0  0
0  0  0  1  0  0  0  0

The 25 solution is :
0  0  1  0  0  0  0  0
0  0  0  0  0  1  0  0
0  0  0  0  0  0  0  1
0  1  0  0  0  0  0  0
0  0  0  1  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  0  0  1  0  0  0

The 26 solution is :
0  0  1  0  0  0  0  0
0  0  0  0  0  0  1  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  1  0  0  0
1  0  0  0  0  0  0  0
0  0  0  1  0  0  0  0
0  0  0  0  0  1  0  0

The 27 solution is :
0  0  1  0  0  0  0  0
0  0  0  0  0  0  1  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  0  1  0  0
0  0  0  1  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  1  0  0  0

The 28 solution is :
0  0  1  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  1  0  0  0  0
0  0  0  0  0  0  1  0
1  0  0  0  0  0  0  0
0  0  0  0  0  1  0  0
0  1  0  0  0  0  0  0
0  0  0  0  1  0  0  0

The 29 solution is :
0  0  0  1  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  1  0  0  0
0  0  0  0  0  0  0  1
0  1  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  1  0  0  0  0  0
0  0  0  0  0  1  0  0

The 30 solution is :
0  0  0  1  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  1  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  0  1  0  0
0  0  1  0  0  0  0  0
0  0  0  0  0  0  1  0
0  1  0  0  0  0  0  0

The 31 solution is :
0  0  0  1  0  0  0  0
0  1  0  0  0  0  0  0
0  0  0  0  1  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  0  1  0  0
1  0  0  0  0  0  0  0
0  0  1  0  0  0  0  0
0  0  0  0  0  0  1  0

The 32 solution is :
0  0  0  1  0  0  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  1  0  0  0  0  0
0  0  0  0  0  1  0  0
0  0  0  0  0  0  0  1
1  0  0  0  0  0  0  0
0  0  0  0  1  0  0  0

The 33 solution is :
0  0  0  1  0  0  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  1  0  0  0  0  0
0  0  0  0  0  1  0  0
0  0  0  0  0  0  0  1
0  0  0  0  1  0  0  0
1  0  0  0  0  0  0  0

The 34 solution is :
0  0  0  1  0  0  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  0  0  1  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  0  1  0  0
0  0  1  0  0  0  0  0

The 35 solution is :
0  0  0  1  0  0  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  1  0  0  0
0  0  0  0  0  0  1  0
1  0  0  0  0  0  0  0
0  0  1  0  0  0  0  0
0  0  0  0  0  1  0  0

The 36 solution is :
0  0  0  1  0  0  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  0  1  0  0
1  0  0  0  0  0  0  0
0  0  1  0  0  0  0  0
0  0  0  0  1  0  0  0
0  0  0  0  0  0  1  0

The 37 solution is :
0  0  0  1  0  0  0  0
0  0  0  0  0  1  0  0
1  0  0  0  0  0  0  0
0  0  0  0  1  0  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  1  0  0  0  0  0
0  0  0  0  0  0  1  0

The 38 solution is :
0  0  0  1  0  0  0  0
0  0  0  0  0  1  0  0
0  0  0  0  0  0  0  1
0  1  0  0  0  0  0  0
0  0  0  0  0  0  1  0
1  0  0  0  0  0  0  0
0  0  1  0  0  0  0  0
0  0  0  0  1  0  0  0

The 39 solution is :
0  0  0  1  0  0  0  0
0  0  0  0  0  1  0  0
0  0  0  0  0  0  0  1
0  0  1  0  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  0  0  1  0  0  0
0  1  0  0  0  0  0  0

The 40 solution is :
0  0  0  1  0  0  0  0
0  0  0  0  0  0  1  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  1  0  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  1  0  0
0  0  1  0  0  0  0  0

The 41 solution is :
0  0  0  1  0  0  0  0
0  0  0  0  0  0  1  0
0  0  1  0  0  0  0  0
0  0  0  0  0  0  0  1
0  1  0  0  0  0  0  0
0  0  0  0  1  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  1  0  0

The 42 solution is :
0  0  0  1  0  0  0  0
0  0  0  0  0  0  1  0
0  0  0  0  1  0  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  1  0  0
1  0  0  0  0  0  0  0
0  0  1  0  0  0  0  0
0  0  0  0  0  0  0  1

The 43 solution is :
0  0  0  1  0  0  0  0
0  0  0  0  0  0  1  0
0  0  0  0  1  0  0  0
0  0  1  0  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  1  0  0
0  0  0  0  0  0  0  1
0  1  0  0  0  0  0  0

The 44 solution is :
0  0  0  1  0  0  0  0
0  0  0  0  0  0  0  1
1  0  0  0  0  0  0  0
0  0  1  0  0  0  0  0
0  0  0  0  0  1  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  0  0  1  0  0  0

The 45 solution is :
0  0  0  1  0  0  0  0
0  0  0  0  0  0  0  1
1  0  0  0  0  0  0  0
0  0  0  0  1  0  0  0
0  0  0  0  0  0  1  0
0  1  0  0  0  0  0  0
0  0  0  0  0  1  0  0
0  0  1  0  0  0  0  0

The 46 solution is :
0  0  0  1  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  1  0  0  0
0  0  1  0  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  1  0  0  0  0  0  0
0  0  0  0  0  1  0  0

The 47 solution is :
0  0  0  0  1  0  0  0
1  0  0  0  0  0  0  0
0  0  0  1  0  0  0  0
0  0  0  0  0  1  0  0
0  0  0  0  0  0  0  1
0  1  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  1  0  0  0  0  0

The 48 solution is :
0  0  0  0  1  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  1  0  0  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  1  0  0  0  0  0
0  0  0  0  0  1  0  0

The 49 solution is :
0  0  0  0  1  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  0  1  0  0
0  0  1  0  0  0  0  0
0  0  0  0  0  0  1  0
0  1  0  0  0  0  0  0
0  0  0  1  0  0  0  0

The 50 solution is :
0  0  0  0  1  0  0  0
0  1  0  0  0  0  0  0
0  0  0  1  0  0  0  0
0  0  0  0  0  1  0  0
0  0  0  0  0  0  0  1
0  0  1  0  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  1  0

The 51 solution is :
0  0  0  0  1  0  0  0
0  1  0  0  0  0  0  0
0  0  0  1  0  0  0  0
0  0  0  0  0  0  1  0
0  0  1  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  0  1  0  0
1  0  0  0  0  0  0  0

The 52 solution is :
0  0  0  0  1  0  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  1  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  0  1  0  0  0  0
0  0  0  0  0  0  0  1
0  0  1  0  0  0  0  0

The 53 solution is :
0  0  0  0  1  0  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  0  1
1  0  0  0  0  0  0  0
0  0  0  1  0  0  0  0
0  0  0  0  0  0  1  0
0  0  1  0  0  0  0  0
0  0  0  0  0  1  0  0

The 54 solution is :
0  0  0  0  1  0  0  0
0  0  1  0  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  1  0  0
0  0  0  0  0  0  0  1
0  1  0  0  0  0  0  0
0  0  0  1  0  0  0  0
0  0  0  0  0  0  1  0

The 55 solution is :
0  0  0  0  1  0  0  0
0  0  1  0  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  0  1  0  0
0  0  0  1  0  0  0  0

The 56 solution is :
0  0  0  0  1  0  0  0
0  0  1  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  1  0  0  0  0
0  0  0  0  0  0  1  0
1  0  0  0  0  0  0  0
0  0  0  0  0  1  0  0
0  1  0  0  0  0  0  0

The 57 solution is :
0  0  0  0  1  0  0  0
0  0  0  0  0  0  1  0
1  0  0  0  0  0  0  0
0  0  1  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  0  1  0  0
0  0  0  1  0  0  0  0
0  1  0  0  0  0  0  0

The 58 solution is :
0  0  0  0  1  0  0  0
0  0  0  0  0  0  1  0
1  0  0  0  0  0  0  0
0  0  0  1  0  0  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  0  1  0  0
0  0  1  0  0  0  0  0

The 59 solution is :
0  0  0  0  1  0  0  0
0  0  0  0  0  0  1  0
0  1  0  0  0  0  0  0
0  0  0  1  0  0  0  0
0  0  0  0  0  0  0  1
1  0  0  0  0  0  0  0
0  0  1  0  0  0  0  0
0  0  0  0  0  1  0  0

The 60 solution is :
0  0  0  0  1  0  0  0
0  0  0  0  0  0  1  0
0  1  0  0  0  0  0  0
0  0  0  0  0  1  0  0
0  0  1  0  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  1  0  0  0  0
0  0  0  0  0  0  0  1

The 61 solution is :
0  0  0  0  1  0  0  0
0  0  0  0  0  0  1  0
0  1  0  0  0  0  0  0
0  0  0  0  0  1  0  0
0  0  1  0  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  1  0  0  0  0

The 62 solution is :
0  0  0  0  1  0  0  0
0  0  0  0  0  0  1  0
0  0  0  1  0  0  0  0
1  0  0  0  0  0  0  0
0  0  1  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  0  1  0  0
0  1  0  0  0  0  0  0

The 63 solution is :
0  0  0  0  1  0  0  0
0  0  0  0  0  0  0  1
0  0  0  1  0  0  0  0
1  0  0  0  0  0  0  0
0  0  1  0  0  0  0  0
0  0  0  0  0  1  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  1  0

The 64 solution is :
0  0  0  0  1  0  0  0
0  0  0  0  0  0  0  1
0  0  0  1  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  1  0  0  0  0  0  0
0  0  0  0  0  1  0  0
0  0  1  0  0  0  0  0

The 65 solution is :
0  0  0  0  0  1  0  0
1  0  0  0  0  0  0  0
0  0  0  0  1  0  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  1  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  0  1  0  0  0  0

The 66 solution is :
0  0  0  0  0  1  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  1  0
1  0  0  0  0  0  0  0
0  0  1  0  0  0  0  0
0  0  0  0  1  0  0  0
0  0  0  0  0  0  0  1
0  0  0  1  0  0  0  0

The 67 solution is :
0  0  0  0  0  1  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  1  0
1  0  0  0  0  0  0  0
0  0  0  1  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  1  0  0  0
0  0  1  0  0  0  0  0

The 68 solution is :
0  0  0  0  0  1  0  0
0  0  1  0  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  0  0  1  0  0  0
0  0  0  0  0  0  0  1
0  1  0  0  0  0  0  0
0  0  0  1  0  0  0  0

The 69 solution is :
0  0  0  0  0  1  0  0
0  0  1  0  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  1  0  0  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  0  0  1  0  0  0

The 70 solution is :
0  0  0  0  0  1  0  0
0  0  1  0  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  1  0  0  0
0  1  0  0  0  0  0  0
0  0  0  1  0  0  0  0
0  0  0  0  0  0  1  0

The 71 solution is :
0  0  0  0  0  1  0  0
0  0  1  0  0  0  0  0
0  0  0  0  1  0  0  0
0  0  0  0  0  0  1  0
1  0  0  0  0  0  0  0
0  0  0  1  0  0  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  0  1

The 72 solution is :
0  0  0  0  0  1  0  0
0  0  1  0  0  0  0  0
0  0  0  0  1  0  0  0
0  0  0  0  0  0  0  1
1  0  0  0  0  0  0  0
0  0  0  1  0  0  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  1  0

The 73 solution is :
0  0  0  0  0  1  0  0
0  0  1  0  0  0  0  0
0  0  0  0  0  0  1  0
0  1  0  0  0  0  0  0
0  0  0  1  0  0  0  0
0  0  0  0  0  0  0  1
1  0  0  0  0  0  0  0
0  0  0  0  1  0  0  0

The 74 solution is :
0  0  0  0  0  1  0  0
0  0  1  0  0  0  0  0
0  0  0  0  0  0  1  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  1  0  0  0
1  0  0  0  0  0  0  0
0  0  0  1  0  0  0  0

The 75 solution is :
0  0  0  0  0  1  0  0
0  0  1  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  0  1  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  1  0  0  0  0  0  0
0  0  0  0  1  0  0  0

The 76 solution is :
0  0  0  0  0  1  0  0
0  0  0  1  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  1  0  0  0
0  0  0  0  0  0  0  1
0  1  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  1  0  0  0  0  0

The 77 solution is :
0  0  0  0  0  1  0  0
0  0  0  1  0  0  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  1  0  0  0
0  0  0  0  0  0  1  0
1  0  0  0  0  0  0  0
0  0  1  0  0  0  0  0

The 78 solution is :
0  0  0  0  0  1  0  0
0  0  0  1  0  0  0  0
0  0  0  0  0  0  1  0
1  0  0  0  0  0  0  0
0  0  1  0  0  0  0  0
0  0  0  0  1  0  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  0  1

The 79 solution is :
0  0  0  0  0  1  0  0
0  0  0  1  0  0  0  0
0  0  0  0  0  0  1  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  1  0  0  0  0  0  0
0  0  0  0  1  0  0  0
0  0  1  0  0  0  0  0

The 80 solution is :
0  0  0  0  0  1  0  0
0  0  0  0  0  0  0  1
0  1  0  0  0  0  0  0
0  0  0  1  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  0  0  1  0  0  0
0  0  1  0  0  0  0  0

The 81 solution is :
0  0  0  0  0  0  1  0
1  0  0  0  0  0  0  0
0  0  1  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  0  1  0  0
0  0  0  1  0  0  0  0
0  1  0  0  0  0  0  0
0  0  0  0  1  0  0  0

The 82 solution is :
0  0  0  0  0  0  1  0
0  1  0  0  0  0  0  0
0  0  0  1  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  1  0  0  0
0  0  1  0  0  0  0  0
0  0  0  0  0  1  0  0

The 83 solution is :
0  0  0  0  0  0  1  0
0  1  0  0  0  0  0  0
0  0  0  0  0  1  0  0
0  0  1  0  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  1  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  1  0  0  0

The 84 solution is :
0  0  0  0  0  0  1  0
0  0  1  0  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  1  0  0
0  0  0  0  0  0  0  1
0  0  0  0  1  0  0  0
0  1  0  0  0  0  0  0
0  0  0  1  0  0  0  0

The 85 solution is :
0  0  0  0  0  0  1  0
0  0  1  0  0  0  0  0
0  0  0  0  0  0  0  1
0  1  0  0  0  0  0  0
0  0  0  0  1  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  1  0  0
0  0  0  1  0  0  0  0

The 86 solution is :
0  0  0  0  0  0  1  0
0  0  0  1  0  0  0  0
0  1  0  0  0  0  0  0
0  0  0  0  1  0  0  0
0  0  0  0  0  0  0  1
1  0  0  0  0  0  0  0
0  0  1  0  0  0  0  0
0  0  0  0  0  1  0  0

The 87 solution is :
0  0  0  0  0  0  1  0
0  0  0  1  0  0  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  0  1
0  0  0  0  0  1  0  0
1  0  0  0  0  0  0  0
0  0  1  0  0  0  0  0
0  0  0  0  1  0  0  0

The 88 solution is :
0  0  0  0  0  0  1  0
0  0  0  0  1  0  0  0
0  0  1  0  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  1  0  0
0  0  0  0  0  0  0  1
0  1  0  0  0  0  0  0
0  0  0  1  0  0  0  0

The 89 solution is :
0  0  0  0  0  0  0  1
0  1  0  0  0  0  0  0
0  0  0  1  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  0  0  1  0  0  0
0  0  1  0  0  0  0  0
0  0  0  0  0  1  0  0

The 90 solution is :
0  0  0  0  0  0  0  1
0  1  0  0  0  0  0  0
0  0  0  0  1  0  0  0
0  0  1  0  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  0  1  0  0  0  0
0  0  0  0  0  1  0  0

The 91 solution is :
0  0  0  0  0  0  0  1
0  0  1  0  0  0  0  0
1  0  0  0  0  0  0  0
0  0  0  0  0  1  0  0
0  1  0  0  0  0  0  0
0  0  0  0  1  0  0  0
0  0  0  0  0  0  1  0
0  0  0  1  0  0  0  0

The 92 solution is :
0  0  0  0  0  0  0  1
0  0  0  1  0  0  0  0
1  0  0  0  0  0  0  0
0  0  1  0  0  0  0  0
0  0  0  0  0  1  0  0
0  1  0  0  0  0  0  0
0  0  0  0  0  0  1  0
0  0  0  0  1  0  0  0