
字符数组--最大最小表示法
淼润淽涵
这个作者很懒,什么都没留下…
展开
-
HDU 2609 How many (给定很多串,求不重复循环串的个数-----最大最小表示法)
Problem DescriptionGive you n ( n < 10000) necklaces ,the length of necklace will not large than 100,tell meHow many kinds of necklaces total have.(if two necklaces can equal by rotating ,we sa...原创 2019-11-13 22:37:47 · 155 阅读 · 0 评论 -
HDU 3336 Count the string(KMP:求一个字符串所有前缀在这个字符串中出现的次数总和)
Problem DescriptionIt is well known that AekdyCoin is good at string problems as well as number theory problems. When given a string s, we can write down all the non-empty prefixes of this string. ...原创 2019-11-13 21:45:35 · 517 阅读 · 0 评论