全排列函数

一:next_permutation()函数,作用是输出所有比当前排列  排列大的排列(顺序为由小到大排) #include<cstdio> #include<iostream> #include<algorithm> using namespace std; int main() { string str; cin>>str; while(next_permutation(str.begi
相关文章
相关标签/搜索