文件名称:longerstr
- 所属分类:
- 其他小程序
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 973kb
- 下载次数:
- 0次
- 提 供 者:
- 李*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
给定一个字符串S[1..n]和一个整数T,现在需要在字符串S中找出长度不小于T的一个子串,
使得其在原串中不重叠出现的次数最多,求这个次数。
Input
第一行:一个整数T(T > 1)
第二行:一个字符串S,且仅包含小写字母,字符串长度不超过10000
Output
一个整数。代表出现最多的次数
如果没有满足条件的解则输出0-Given a string S [1 .. n] and an integer T, now need to find the length of the string S is not less than T, a sub-string, making it in the original string does not overlap occurs more frequently than to seek the number of times. Input The first line: an integer T (T> 1) second line: a string S, and contains only lowercase letters, the string length does not exceed 10000 Output an integer. Appears most representative of the number of times, if the solution does not meet the conditions, the output 0
使得其在原串中不重叠出现的次数最多,求这个次数。
Input
第一行:一个整数T(T > 1)
第二行:一个字符串S,且仅包含小写字母,字符串长度不超过10000
Output
一个整数。代表出现最多的次数
如果没有满足条件的解则输出0-Given a string S [1 .. n] and an integer T, now need to find the length of the string S is not less than T, a sub-string, making it in the original string does not overlap occurs more frequently than to seek the number of times. Input The first line: an integer T (T> 1) second line: a string S, and contains only lowercase letters, the string length does not exceed 10000 Output an integer. Appears most representative of the number of times, if the solution does not meet the conditions, the output 0
(系统自动生成,下载前可以参看下载内容)
下载文件列表
longerstr\01.cpp
.........\01.dsp
.........\01.dsw
.........\01.ncb
.........\01.opt
.........\01.plg
.........\0110.asp
.........\02.cpp
.........\02.dsp
.........\02.dsw
.........\02.ncb
.........\02.opt
.........\02.plg
.........\Debug\01.exe
.........\.....\01.obj
.........\.....\01.pdb
.........\.....\02.exe
.........\.....\02.obj
.........\.....\02.pdb
.........\.....\sbb.exe
.........\.....\sbb.pdb
.........\.....\vc60.pdb
.........\sbb.dsp
.........\sbb.dsw
.........\sbb.ncb
.........\sbb.opt
.........\sbb.plg
.........\Debug
longerstr
.........\01.dsp
.........\01.dsw
.........\01.ncb
.........\01.opt
.........\01.plg
.........\0110.asp
.........\02.cpp
.........\02.dsp
.........\02.dsw
.........\02.ncb
.........\02.opt
.........\02.plg
.........\Debug\01.exe
.........\.....\01.obj
.........\.....\01.pdb
.........\.....\02.exe
.........\.....\02.obj
.........\.....\02.pdb
.........\.....\sbb.exe
.........\.....\sbb.pdb
.........\.....\vc60.pdb
.........\sbb.dsp
.........\sbb.dsw
.........\sbb.ncb
.........\sbb.opt
.........\sbb.plg
.........\Debug
longerstr