全排列函數

一:next_permutation()函數,作用是輸出所有比當前排列  排列大的排列(順序爲由小到大排) #include<cstdio> #include<iostream> #include<algorithm> using namespace std; int main() { string str; cin>>str; while(next_permutation(str.begi
相關文章
相關標籤/搜索