2016年9月7日

摘要: next数组 1. 如果对于值k,已有p0 p1, ..., pk-1 = pj-k pj-k+1, ..., pj-1,相当于next[j] = k。 此意味着什么呢?究其本质,next[j] = k 代表p[j] 之前的模式串子串中,有长度为k 的相同前缀和后缀。有了这个next 数组,在KMP 阅读全文
posted @ 2016-09-07 15:59 leon南 阅读(4032) 评论(0) 推荐(0) 编辑
 
摘要: 1334: Oil Deposits 时间限制(普通/Java):1000MS/10000MS 内存限制:65536KByte总提交: 555 测试通过:404 描述 The GeoSurvComp geologic survey company is responsible for detecti 阅读全文
posted @ 2016-09-07 15:24 leon南 阅读(151) 评论(0) 推荐(0) 编辑
 
摘要: 2647: How Many Tables 时间限制(普通/Java):1000MS/10000MS 内存限制:65536KByte总提交: 353 测试通过:208 描述 Today is Ignatius' birthday. He invites a lot of friends. Now i 阅读全文
posted @ 2016-09-07 12:33 leon南 阅读(174) 评论(0) 推荐(0) 编辑
 
摘要: 3136: Ubiquitous Religions 时间限制(普通/Java):2000MS/6000MS 内存限制:65536KByte总提交: 274 测试通过:149 描述 There are so many different religions in the world today th 阅读全文
posted @ 2016-09-07 12:30 leon南 阅读(134) 评论(0) 推荐(0) 编辑