摘要:
#include <stdio.h>#include <stdlib.h>#include <memory.h>#define MAX 6void DFS(int *output, int val, int pos, bool *isSelected, int &k){int i = 0;if ( isSelected[val] ){return;}output[pos] = val;isSelected[val] = true;if ( pos == (MAX - 2) ){for (i = 0; i < MAX - 1; i++){prin 阅读全文