摘要: Description 给你一个字符串,求所有长度为偶数的前缀在整个字符串出现的次数和。 Input 共一行,一个字符串s。 Output 共一行,输出一个整数,代表长度为偶数的前缀在整个字符串出现的次数和。|S|≤200000。 Sample Input abababc Sample Output 阅读全文
posted @ 2020-03-23 22:16 蘑菇JJ 阅读(601) 评论(0) 推荐(0) 编辑
摘要: Give you a string S,assume the Sub-String Stri = S[0..i] and the length of the string is N. e.g. S = "moreandmorecold", N = 15, Str0 = "m" Str1 = "mo" 阅读全文
posted @ 2020-03-23 22:11 蘑菇JJ 阅读(177) 评论(0) 推荐(0) 编辑