文件名称:longerstr
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:973.25kb
-
已下载: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
longerstr/01.dsp
longerstr/01.dsw
longerstr/01.ncb
longerstr/01.opt
longerstr/01.plg
longerstr/0110.asp
longerstr/02.cpp
longerstr/02.dsp
longerstr/02.dsw
longerstr/02.ncb
longerstr/02.opt
longerstr/02.plg
longerstr/Debug/01.exe
longerstr/Debug/01.obj
longerstr/Debug/01.pdb
longerstr/Debug/02.exe
longerstr/Debug/02.obj
longerstr/Debug/02.pdb
longerstr/Debug/sbb.exe
longerstr/Debug/sbb.pdb
longerstr/Debug/vc60.pdb
longerstr/sbb.dsp
longerstr/sbb.dsw
longerstr/sbb.ncb
longerstr/sbb.opt
longerstr/sbb.plg
longerstr/Debug
longerstr
longerstr/01.dsp
longerstr/01.dsw
longerstr/01.ncb
longerstr/01.opt
longerstr/01.plg
longerstr/0110.asp
longerstr/02.cpp
longerstr/02.dsp
longerstr/02.dsw
longerstr/02.ncb
longerstr/02.opt
longerstr/02.plg
longerstr/Debug/01.exe
longerstr/Debug/01.obj
longerstr/Debug/01.pdb
longerstr/Debug/02.exe
longerstr/Debug/02.obj
longerstr/Debug/02.pdb
longerstr/Debug/sbb.exe
longerstr/Debug/sbb.pdb
longerstr/Debug/vc60.pdb
longerstr/sbb.dsp
longerstr/sbb.dsw
longerstr/sbb.ncb
longerstr/sbb.opt
longerstr/sbb.plg
longerstr/Debug
longerstr
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.