文章

211

粉丝

1

获赞

1223

访问

164.6k

头像
全排列 题解:

#include<bits/stdc++.h>
using namespace std;
int main(){
    string str;
	cin >> str;
	do{ 
		cout << str << endl;
	}while(next_permutation(str.begin(),str.end()));
    return 0;
}

 

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发