Untitled
unknown
plain_text
a year ago
393 B
2
Indexable
Never
int main() { string s; cin>>s; sort(s.begin(),s.end()); vector<string> ans; do{ if(s[0]>='0' && s[0]<='9'){ }else{ ans.push_back(s); } }while(next_permutation(s.begin(),s.end())); sort(ans.begin(), ans.end()); for(int i=0;i<ans.size();i++){ cout<<ans[i]<<" "; } cout<<endl; return 0; }