2017年3月22日

枚举排列

摘要: 1.生成1-n的排列 递归生成,每一次递归选出当前位置的数,若之前选过则不再选 代码: #include <iostream> #include <cstdio> using namespace std; void print_permutation(int *A, int n, int cur) 阅读全文

posted @ 2017-03-22 04:41 子狼 阅读(247) 评论(0) 推荐(0)

导航