蓝桥杯_带分数_STL_next_permutation(a,a+n)
->优快云算法技能树_递归_4.8带分数
特别注意一点:要使用next_permutation进行全排列,首先必须将数组从小到大进行排序,否则只能是部分排序!
使用,进行全排列next_permutation(a + 1, a + 10)
#include<iostream>
#include<algorithm>
using namespace std;
int a[10] = {
0,1,2,3,4,5,6,7,8