Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
136432 全排列问题 C++ 编译错误 0 0 MS 0 KB 305 2024-03-09 09:26:38

Tests(0/0):


#include <iostream> #include <algorithm> #include <string.h> using namespace std; bool cmp(int a, int b) { return a > b; } int s1[10000]; int main() { cin >> s1; sort(s1.begin(), s1.end(), cmp); do { cout << s1 << " "; } while (next_permutation(s1.begin(), s1.end(),cmp)); }


测评信息: