#include <bits/stdc++.h> using namespace std; int main(){ string s = "acb"; sort(s.begin(),s.end()); do{ cout<<s<<endl; }while(next_permutation(s.begin(),s.end())); return 0; }
AcWing《算法基础课》拼团优惠!https://www.acwing.com/activity/content/introduction/11/group_buy/205739/
AcWing《算法基础课》拼团优惠!https://www.acwing.com/activity/content/introduction/11/group_buy/205739/