Cod sursa(job #2099715)
Utilizator | Data | 4 ianuarie 2018 17:02:30 | |
---|---|---|---|
Problema | Oras | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.2 kb |
#include <algorithm>
#include <cstdio>
int main()
{
char xs[] = "001";
do
{
std::puts(xs);
}
while (std::next_permutation(xs, xs + sizeof(xs) - 1));
return 0;
}