acwing深度优先dfs

n个数全排列

#include
using namespace std;
const int N=10010;

int n;
int path[N];
bool st[N];



void dfs(int u){
	if(u==n){
		for(int i=0;i>n;
	dfs(0);
	return 0;
	
}

你可能感兴趣的:(算法,深度优先,算法,图论)