ICode9

精准搜索请尝试: 精确搜索
  • B - One More aab aba baa2022-07-18 17:32:54

    一道全排列的题,可以用dfs,也可以用stl内置的函数next_permutation dfs版本 #include <algorithm> #include <iostream> #include <vector> using namespace std; vector<string> c(41000); bool st[10]; int n, cnt; char b[10]; string a; void dfs(int m) { if (m &

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有