Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
39443 | Songgy_King | 全排列 | C++ | 通过 | 1 MS | 252 KB | 181 | 2024-02-01 18:13:47 |
#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; }