随笔分类 -  ACM字符串

NUC1657 All in All【字符串匹配】
摘要:All in All时间限制: 1000ms 内存限制: 30000KB通过次数: 1总提交次数: 1问题描述You have devised a new encryption technique which encodes a message by insertin... 阅读全文

posted @ 2017-06-22 07:38 海岛Blog 阅读(164) 评论(0) 推荐(0)

HDU2203 亲和串
摘要:问题链接:HDU2203 亲和串。问题简述:参见上述链接。问题分析: 这是一个有关字符串处理的问题。 这里给出两个程序,使用了不同的技术。还可以使用KMP算法来解决本问题。程序说明:(略)。AC的C++语言程序如下:/* HDU2203 亲和串 */#includ... 阅读全文

posted @ 2017-04-05 23:15 海岛Blog 阅读(192) 评论(0) 推荐(0)

POJ2752 Seek the Name, Seek the Fame
摘要:问题链接:POJ2752 Seek the Name, Seek the Fame。读懂题后知道,这个题要算的是,给定一个字符串s,有哪些长度的s的前缀,同时也是s的后缀。首先明确一下前缀和后缀的概念。字符串s的前缀是指,从s的开始字符到s的任意字符为止的子串。字符串... 阅读全文

posted @ 2016-06-26 23:37 海岛Blog 阅读(123) 评论(0) 推荐(0)

导航