Cod sursa(job #2922789)
| Utilizator | Data | 10 septembrie 2022 09:53:31 | |
|---|---|---|---|
| Problema | Hashuri | Scor | 0 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva educationala | Marime | 0.23 kb |
#include <bits/stdc++.h>
using namespace std;
string s = "abecedar";
int main()
{
sort(s.begin(), s.end());
do
cout << s << endl;
while (next_permutation(s.begin(), s.end()));
cout << s;
return 0;
}
