摘要: Problem DescriptionGiven 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 ph... 阅读全文
posted @ 2015-02-27 20:48 daydaycode 阅读(147) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionClairewd is a member of FBI. After several years concealing in BUPT, she intercepted some important messages and she was preparing ... 阅读全文
posted @ 2015-02-27 17:34 daydaycode 阅读(152) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionCC always becomes very depressed at the end of this month, he has checked his credit card yesterday, without any surprise, there ar... 阅读全文
posted @ 2015-02-27 15:44 daydaycode 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Number SequenceTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 12326Accepted Submission(s): 5627P... 阅读全文
posted @ 2015-02-27 12:00 daydaycode 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 1 // KMP 2 3 void get_next(char s[],int next[]) 4 { 5 int i,j; 6 i=1;j=0; 7 next[1]=0; 8 int len=strlen(s); 9 while(ilen2)42 ... 阅读全文
posted @ 2015-02-27 01:46 daydaycode 阅读(146) 评论(0) 推荐(0) 编辑