摘要:
题面 Description 给长度为 n 的字符串 S , 对任意的 L , 求长度为 L 的子串最多出现的次数. Input String S consists of at most 250000 lowercase latin letters. Output Output |S| lines. 阅读全文
摘要:
题面 题目描述 给你两个字符串a和b,告诉所有你b在a中一定匹配的位置,求有中不同的字符串a。a的长度为n,b的长度为m,一定匹配的位置有p个。若b在a中的一定匹配的位置为x,说明a[x…x+m 1]=b[1…m]。a和b中只有小写字母。 输入格式 第一行两个字符串n、p;(1 include in 阅读全文
摘要:
题面 题目描述 给你一个字符串s,对于s的每一个前缀,如果它也是s的一个后缀,输出这个前缀在s中出现了多少次。 输入格式 一个字符串s(长度= i$的数量即可. cpp include include include const int L = (int)1e5; int main() { stat 阅读全文
摘要:
题面 Description 给定一个含N个元素的数组A,下标从1开始。请找出下面式子的最大值。 (A[l1]xorA[l2+1]xor…xorA[r1])+(A[l2]xorA[l2+1]xor…xorA[r2]) 1 include include const int N = (int)4e5; 阅读全文