随笔分类 -  字符串—kmp

摘要:一块花布条,里面有些图案,另有一块直接可用的小饰条,里面也有一些图案。对于给定的花布条和小饰条,计算一下能从花布条中尽可能剪出几块小饰条来呢? Input输入中含有一些数据,分别是成对出现的花布条和小饰条,其布条都是用可见ASCII字符表示的,可见的ASCII字符有多少个,布条的花纹也有多少种花样。 阅读全文
posted @ 2017-08-22 10:17 天之道,利而不害 阅读(219) 评论(0) 推荐(0) 编辑
摘要:1.kmp找到后替换即可 阅读全文
posted @ 2017-05-16 20:55 天之道,利而不害 阅读(227) 评论(0) 推荐(0) 编辑
摘要:CC always becomes very depressed at the end of this month, he has checked his credit card yesterday, without any surprise, there are only 99.9 yuan le 阅读全文
posted @ 2017-05-13 23:29 天之道,利而不害 阅读(295) 评论(0) 推荐(0) 编辑
摘要:For each prefix of a given string S with N characters (each character has an ASCII code between 97 and 126, inclusive), we want to know whether the pr 阅读全文
posted @ 2017-05-12 21:56 天之道,利而不害 阅读(231) 评论(0) 推荐(0) 编辑
摘要:Given two sequences of numbers : a11 , a22 , ...... , aNN , and b11 , b22 , ...... , bMM (1 <= M <= 10000, 1 <= N <= 1000000). Your task is to find a 阅读全文
posted @ 2017-05-11 21:19 天之道,利而不害 阅读(202) 评论(0) 推荐(0) 编辑
摘要:The 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 fr 阅读全文
posted @ 2017-05-11 21:05 天之道,利而不害 阅读(175) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示