随笔分类 - 字符串-KMP&扩展KMP&马拉车
摘要:3620: 似乎在梦中见过的样子 Description “Madoka,不要相信 QB!”伴随着 Homura 的失望地喊叫,Madoka 与 QB 签订了契约. 这是 Modoka 的一个噩梦,也同时是上个轮回中所发生的事.为了使这一次 Madoka 不再与 QB签订契约,Homura 决定在刚
阅读全文
摘要:3676: [Apio2014]回文串 Description 考虑一个只包含小写拉丁字母的字符串s。我们定义s的一个子串t的“出 现值”为t在s中的出现次数乘以t的长度。请你求出s的所有回文子串中的最 大出现值。 考虑一个只包含小写拉丁字母的字符串s。我们定义s的一个子串t的“出 现值”为t在s中
阅读全文
摘要:1398: Vijos1382寻找主人 Necklace Description 给定两个项链的表示,判断他们是否可能是一条项链。 给定两个项链的表示,判断他们是否可能是一条项链。 Input 输入文件只有两行,每行一个由0至9组成的字符串,描述一个项链的表示(保证项链的长度是相等的)。 输入文件只
阅读全文
摘要:3160: 万径人踪灭 Description Input Output Sample Input Sample Output HINT Source 2013湖北互测week1 2013湖北互测week1 【分析】 看题目被吓死,其实很多废话。。 还是自己想出来了。。FFT好强啊。。可以加速很多东
阅读全文
摘要:【题目】 【题意】 Jodie和Aiden在做游戏。Jodie在一个长度为l字符串环上走路,他每离开一个就会记下格子当前字符。他让Aiden在他走了一圈后叫他停下来。Aiden决定耍一下Jodie,在他走了k步重复的格后才告诉他。Jodie离开的格子会随机变为一个字符。Jodie走了两次(起点可能不
阅读全文
摘要:Revolving Digits Description One day Silence is interested in revolving the digits of a positive integer. In the revolving operation, he can put sever
阅读全文
摘要:String Problem Description Give you a string with length N, you can generate N strings by left shifts. For example let consider the string “SKYLONG”,
阅读全文
摘要:Cow Patterns Description A particular subgroup of K (1 <= K <= 25,000) of Farmer John's cows likes to make trouble. When placed in a line, these troub
阅读全文
摘要:Power Strings Description Given two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcde
阅读全文
浙公网安备 33010602011771号