zoukankan      html  css  js  c++  java
  • 51Nod

    全排列函数解法

    #include <iostream> #include <cstdio> #include <cstring> #include <cmath> #include <algorithm> #include <queue> #include <stack> using namespace std; typedef long long ll; char s[15]; int main() { int len; scanf("%s", s); len=strlen(s); sort(s,s+len); do { puts(s); }while(next_permutation(s, s+len)); return 0; }
  • 相关阅读:
    Git
    Spring
    Linux
    Linux
    Linux
    Linux
    Linux
    Linux
    Linux
    Linux
  • 原文地址:https://www.cnblogs.com/nr1999/p/9052624.html
Copyright © 2011-2022 走看看