上一页 1 ··· 63 64 65 66 67 68 69 70 71 ··· 94 下一页

2012年8月6日

POJ 2406 Power Strings(KMP next[]函数)

摘要: Power StringsTime Limit: 3000MSMemory Limit: 65536KTotal Submissions: 23112Accepted: 9691DescriptionGiven two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think of concatenation as multiplica 阅读全文

posted @ 2012-08-06 22:09 kuangbin 阅读(563) 评论(0) 推荐(0) 编辑

POJ 1961 Period(KMP求一个串的重复子串)

摘要: PeriodTime Limit: 3000MSMemory Limit: 30000KTotal Submissions: 9696Accepted: 4428DescriptionFor each prefix of a given string S with N characters (eac... 阅读全文

posted @ 2012-08-06 21:46 kuangbin 阅读(2480) 评论(1) 推荐(0) 编辑

HDU 1711 Number Sequence (KMP找子串第一次出现的位置)

摘要: Number SequenceTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5898Accepted Submission(s): 2652Problem DescriptionGiven two sequences of numbers : a[1], a[2], ...... , a[N], and b[1], b[2], ...... , b[M] (1 <= M <= 10000, 1 <= N <= 100 阅读全文

posted @ 2012-08-06 21:17 kuangbin 阅读(752) 评论(0) 推荐(0) 编辑

POJ 3461 Oulipo(KMP统计子串出现次数)

摘要: OulipoTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 12818Accepted: 5128DescriptionThe French author Georges Perec (1936–1982) once wrote a book, La disparition, without the letter 'e'. He was a member of the Oulipo group. A quote from the book:Tout avait Pair normal, mais tout s’a 阅读全文

posted @ 2012-08-06 21:15 kuangbin 阅读(2596) 评论(0) 推荐(0) 编辑

POJ 1056 IMMEDIATE DECODABILITY(字典树,判断有没有一个是另一个的前缀)

摘要: IMMEDIATE DECODABILITYTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 8895Accepted: 4222DescriptionAn encoding of a set of symbols is said to be immediately decodable if no code for one symbol is the prefix of a code for another symbol. We will assume for this problem that all codes are in 阅读全文

posted @ 2012-08-06 12:41 kuangbin 阅读(1800) 评论(2) 推荐(0) 编辑

HDU 1247 Hat’s Words(字典树)

摘要: Hat’s WordsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3565Accepted Submission(s): 1355Problem DescriptionA hat’s word is a word in the dictionary that is the concatenation of exactly two other words in the dictionary.You are to find all the ha 阅读全文

posted @ 2012-08-06 10:50 kuangbin 阅读(1450) 评论(0) 推荐(0) 编辑

2012年8月5日

HDU 1617 HDU 3630 Phone List(字典树)

摘要: Phone ListTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 16341Accepted: 5228DescriptionGiven a list of phone numbers, determine if it is consistent in the sense that no number is the prefix of another. Let's say the phone catalogue listed these numbers:Emergency 911Alice 97 625 999Bob 阅读全文

posted @ 2012-08-05 11:10 kuangbin 阅读(808) 评论(0) 推荐(0) 编辑

2012年8月4日

HDU 1251 统计难题(字典树)

摘要: 统计难题Time Limit: 4000/2000 MS (Java/Others)Memory Limit: 131070/65535 K (Java/Others)Total Submission(s): 10295Accepted Submission(s): 4216Problem DescriptionIgnatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现在老师要他统计出以某个字符串为前缀的单词数量(单词本身也是自己的前缀).Input输入数据的第一部分是一张单词表,每行一个单词,单词的长度不超过10,它们代表的是老师交给Ignatius统 阅读全文

posted @ 2012-08-04 23:22 kuangbin 阅读(2627) 评论(0) 推荐(0) 编辑

HDU 1789 Doing Homework again(排序,DP)

摘要: Doing Homework againTime Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2969Accepted Submission(s): 1707Problem DescriptionIgnatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline 阅读全文

posted @ 2012-08-04 19:15 kuangbin 阅读(5064) 评论(0) 推荐(1) 编辑

HDU 1492 The number of divisors(约数) about Humble Numbers(数论,简单约数)

摘要: The number of divisors(约数) about Humble NumbersTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1623Accepted Submission(s): 789Problem DescriptionA number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 阅读全文

posted @ 2012-08-04 15:27 kuangbin 阅读(389) 评论(0) 推荐(0) 编辑

上一页 1 ··· 63 64 65 66 67 68 69 70 71 ··· 94 下一页

导航

JAVASCRIPT: