会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
寒燠
In me the tiger sniffs the rose.
博客园
首页
新随笔
联系
管理
订阅
2016年3月22日
排列
摘要: 给定一个正整数n,1,2,...,n的全排列有n!种,按字典序从小到大,对于任意一个排列,给出它的下一个排列。如n=3,123的下一个排列为132。 代码: #include<stdio.h>#include<iostream>using namespace std;int n;int main()
阅读全文
posted @ 2016-03-22 08:54 寒燠
阅读(121)
评论(0)
推荐(0)
公告