深度优先搜索 全排列
摘要:
#include using namespace std; int a[10],book[10],n;//全局变量未赋值为0 void dfs(int step) { if(step==n+1) { for(int i=1;i>n; dfs(1); return 0; } 阅读全文
posted @ 2019-02-28 22:43 本子君 阅读(268) 评论(0) 推荐(0) 编辑
posted @ 2019-02-28 22:43 本子君 阅读(268) 评论(0) 推荐(0) 编辑