字符串
这条街上最靓的妞儿
这个作者很懒,什么都没留下…
展开
-
模拟训练第五场A.Keyboard Layouts
B. Keyboard Layoutstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are two popular keyboard layouts in Berland, they differ only in letters p...原创 2018-04-03 17:38:49 · 450 阅读 · 0 评论 -
第五场 F - 3-palindrome
B. 3-palindrometime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn the beginning of the new year Keivan decided to reverse his name. He doesn't like...原创 2018-04-04 20:04:14 · 143 阅读 · 0 评论 -
51 nod 1088 最长回文子串
1088 最长回文子串 基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 收藏 关注 回文串是指aba、abba、cccbccc、aaaa这种左右对称的字符串。 输入一个字符串Str,输出Str里最长回文子串的长度。 Input 输入Str(Str的长度 <= 1000) Output 输出最长回文子串的长度L。 Input示例 daabaac...原创 2018-08-04 11:01:05 · 130 阅读 · 0 评论 -
51 nod 1006 最长公共子序列Lcs (DP)
1006 最长公共子序列Lcs 基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 收藏 关注 给出两个字符串A B,求A与B的最长公共子序列(子序列不要求是连续的)。 比如两个串为:abcicba abdkscabab是两个串的子序列,abc也是,abca也是,其中abca是这两个字符串最长的子序列。 Input 第1行:字符串A 第2行:字符串...原创 2018-07-31 10:03:50 · 153 阅读 · 0 评论 -
51 nod 1089 最长回文子串 V2(Manacher算法)
1089 最长回文子串 V2(Manacher算法) 基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 收藏 关注 回文串是指aba、abba、cccbccc、aaaa这种左右对称的字符串。 输入一个字符串Str,输出Str里最长回文子串的长度。 Input 输入Str(Str的长度 <= 100000) Output 输出最长回文子串的长度L。 ...转载 2018-08-05 08:58:23 · 87 阅读 · 0 评论 -
百度之星 子串查询(字符串)
子串查询 Time Limit: 3500/3000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Problem Description 度度熊的字符串课堂开始了!要以像度度熊一样的天才为目标,努力奋斗哦! 为了检验你是否具备不听课的资质,度度熊准备了一个只包含大写英文字母的字符串 A[1,n]=a1a2⋯an,...原创 2018-08-05 20:25:37 · 307 阅读 · 0 评论 -
HDU 1251 统计难题(字典树)
统计难题 Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 131070/65535 K (Java/Others) Total Submission(s): 55187 Accepted Submission(s): 19275Problem Description Ignatius最近遇到一个难题,老师交给他很多单词...原创 2018-08-10 09:14:34 · 99 阅读 · 0 评论 -
HDU 1020 Encoding(字符统计)
Encoding Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 54048 Accepted Submission(s): 24021Problem Description Given a string containi...原创 2018-08-06 17:17:32 · 136 阅读 · 0 评论