摘要:        
用法 字典序全排列 可以发现函数next_permutation()是按照字典序产生排列的,并且是从数组中当前的字典序开始依次增大直至到最大字典序。 代码 include include using namespace std; define ll long long int main(){ int    阅读全文
posted @ 2018-08-14 15:38
ChunhaoMo
阅读(79)
评论(0)
推荐(0)
        
            
        
        
摘要:        
``` #include using namespace std; #define ll long long void print_permutation(int n,int* A,int cur){ if(cur==n){ for(int i=0;i>n){ print_permutation(n,a,0); } return 0; } ```    阅读全文
posted @ 2018-08-14 15:07
ChunhaoMo
阅读(135)
评论(0)
推荐(0)
        

浙公网安备 33010602011771号