Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
39435 | LeeHao | 全排列 | C++ | Accepted | 1 MS | 252 KB | 181 | 2024-02-01 17:13:09 |
#include <bits/stdc++.h> using namespace std; int main() { char s[100]; cin >> s; do { cout << s << endl; } while (next_permutation(s, s + strlen(s))); return 0; }