cf劲啊 原题: We have a string of letters 'a' and 'b'. We want to perform some operations on it. On each step we choose one of substrings "ab" in the strin ...
分类:
其他好文 时间:
2017-05-05 09:23:40
阅读次数:
266
Remove Substrings Given a string s and a set of n substrings. You are supposed to remove every instance of those n substrings from s so that s is of t ...
分类:
编程语言 时间:
2017-04-25 21:13:55
阅读次数:
224
题意: 给定一个序列ai,个数为n。再给出一系列w;对于每个w,求序列中,所有长度为w的连续子串中的权值和,子串权值为子串中不同数的个数。 ...
分类:
其他好文 时间:
2017-04-25 00:48:29
阅读次数:
117
【题目链接】click here~~ 【题目大意】: You are given string s. Your task is to determine if the given string s contains two non-overlapping substrings “AB” and “B ...
分类:
其他好文 时间:
2017-04-12 04:27:35
阅读次数:
164
You are given a number of case-sensitive strings of alphabetic characters, find the largest string X, such that either X, or its inverse can be found ...
分类:
其他好文 时间:
2017-03-19 11:07:40
阅读次数:
164
原题链接 注意:2号和3号get_next()函数中next[i]赋值时的区别,一个是0,一个是1,且不能互换 ...
分类:
其他好文 时间:
2017-03-13 19:18:34
阅读次数:
224
[SPOJ8222]Substrings 试题描述 You are given a string S which consists of 250000 lowercase latin letters at most. We define F(x) as the maximal number of t ...
分类:
其他好文 时间:
2017-03-13 11:17:35
阅读次数:
210
题意:求出现过两次以上的不同子串有多少种。 ...
分类:
其他好文 时间:
2017-03-12 23:43:12
阅读次数:
191
评测地址:https://cn.vjudge.net/problem/CSU-1632 Description 求字符串中所有出现至少2次的子串个数 Input 第一行为一整数T(T<=10)表示用例组数,每组用例占一行为一个长度不超过100000的字符串 Output 对于每组用例,输出该串中所有 ...
分类:
编程语言 时间:
2017-03-12 11:46:03
阅读次数:
183