会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Esico's Blog
博客园
首页
新随笔
联系
订阅
管理
03 2021 档案
全排列 next_permutation() 函数的用法
摘要:这是一个c++函数,包含在头文件<algorithm>里面,下面是基本格式。 1 int a[]; 2 do{ 3 4 }while(next_permutation(a,a+n)); 下面的代码可产生1~n的全排列。 #include <stdio.h> #include <algorithm>
阅读全文
posted @
2021-03-17 19:23
esico
阅读(33)
评论(0)
推荐(0)
公告