文件名称:递归枚举模板
-
所属分类:
- 标签属性:
- 上传时间:2008-10-13
-
文件大小:1.26kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
递归枚举模板
问题描述:生成长度为n的字串,其字符从26个英文字母的前p(p≤26)个字母中选取,使得没有相邻的子序列相等。例如p=3,n=5时:
// abcba 满足条件
// abcbc 不满足条件
//输入:n p
//输出:所有满足条件的字串及总数-recursive template Problem descr iption : n generation length of the string and its 26 characters from the English alphabet before p (p 26) 000 1984 letter, makes no adjacent sequences equivalent. For example, p = 3, n = 5 : / / abcba meet the conditions / / abcbc not satisfied conditions / / input : n p / / output : to satisfy all the conditions and the total number of strings
问题描述:生成长度为n的字串,其字符从26个英文字母的前p(p≤26)个字母中选取,使得没有相邻的子序列相等。例如p=3,n=5时:
// abcba 满足条件
// abcbc 不满足条件
//输入:n p
//输出:所有满足条件的字串及总数-recursive template Problem descr iption : n generation length of the string and its 26 characters from the English alphabet before p (p 26) 000 1984 letter, makes no adjacent sequences equivalent. For example, p = 3, n = 5 : / / abcba meet the conditions / / abcbc not satisfied conditions / / input : n p / / output : to satisfy all the conditions and the total number of strings
(系统自动生成,下载前可以参看下载内容)
下载文件列表
递归枚举模板.cpp
www.dssz.com.txt
www.dssz.com.txt
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。