
字符串综合
浦柳人
岁月悠悠,衰微只及肌肤;热枕抛却,颓唐必至灵魂。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
D - Many Equal Substrings
You are given a string t consisting of n lowercase Latin letters and an integer number kLet’s define a substring of some string swith indices from l to r as s[l…r]Your task is to construct such stri...原创 2019-03-03 19:03:33 · 343 阅读 · 0 评论 -
I - ?(>_o)!
?(>_o)! is a pseudo-object-oriented programming language. It implements the following commands:Command Description? :Check whether the character ‘?’ is in the program’s source code. If ‘?’ does...原创 2019-04-23 20:57:31 · 30985 阅读 · 0 评论 -
“美登杯”上海市高校大学生程序设计邀请赛 (华东理工大学)——A. 小花梨的字符串
题目:第一次看懵了,然后发现,区间内所有的子串好像都可以排成这样一排,,,所以,就是让你算该区间的所有子串,一个求和公式。。。。#include<stdio.h>#include<iostream>#include<map>#include<algorithm>#include<cstring>#include<str...原创 2019-05-18 19:39:56 · 199 阅读 · 0 评论 -
H - Fxx and string HDU - 5944
Young theoretical computer scientist Fxx get a string which contains lowercase letters only.The string S contains n lowercase letters S1S2…Sn.Now Fxx wants to know how many three tuple (i,j,k) there ...原创 2019-03-10 20:39:29 · 141 阅读 · 0 评论 -
E - Excting Secret Chamber at Mount Rushmore
By now you have probably heard that there is a spectacular stone sculpture featuring four famous U.S. presidents at Mount Rushmore. However, very few people know that this monument contains a secret c...原创 2019-04-01 08:40:49 · 241 阅读 · 0 评论 -
Palindrome POJ - 3974 之 (马拉车manacher算法_回文)
马拉车manacher算法:[洛谷日报第80期]马拉车manacher算法 问题虫洞:Palindrome POJ - 3974黑洞内窥:多组测试样例,一直读到“END”结束对于每组测试样例,你将输入一个仅由小写字母组成的长字符串(len<=1000000)每组样例输出一行,代表这个字符串的最大回文子串(包括字符串本身)的长度思维光年:我们一开始的做法...原创 2019-07-31 16:35:34 · 256 阅读 · 0 评论