23.algorithm的常见用法详解优化-[STL模板]

23.algorithm的常见用法详解优化-[STL模板]

1.next_permutation() —给出一个序列在全排列中的下一序列

普通版(按要求输出一种全排列,这里取n=3)

#include <bits/stdc++.h>
using namespace std;
int main()
{
	int a[10]={1

猜你喜欢

转载自blog.csdn.net/xg987599519/article/details/104087076