会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wdan2016
博客园
首页
新随笔
联系
订阅
管理
2017年3月21日
小明买了一些彩色的气球用绳子串在一条线上,想要装饰房间,每个气球都染上了一种颜色,每个气球的形状都是各不相同的。我们用1到9一共9个数字表示不同的颜色,如12345则表示一串5个颜色各不相同的气球串。但小明希望得到不出现重复颜色的气球串,那么现在小明需要将这个气球串剪成多个较短的气球串,小明一共有多少种剪法?如原气球串12345的一种是剪法是剪成12和345两个气球串。
摘要: include "stdafx.h" include include include include include include include include include include using namespace std; int main() { int n; while (cin
阅读全文
posted @ 2017-03-21 22:06 wdan2016
阅读(1568)
评论(1)
推荐(0)
公告