Problem statement Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English le ...
分类:
其他好文 时间:
2017-06-23 10:18:23
阅读次数:
297
Problem Description Now you are back,and have a task to do: Given you a string s consist of lower-case English letters only,denote f(s) as the number ...
分类:
编程语言 时间:
2017-06-20 10:58:47
阅读次数:
247
【BZOJ2213】[Poi2011]Difference Description A word consisting of lower-case letters of the English alphabet ('a'-'z') is given. We would like to choose ...
分类:
其他好文 时间:
2017-06-18 15:13:54
阅读次数:
125
execCommand方法是执行一个对当前文档,当前选择或者给出范围的命令。处理Html数据时常用 如下格式:document.execCommand(sCommand[,交互方式, 动态参数]) ,其中:sCommand为指令参数(如下例中的”2D-Position”),交互方式参数如果是true ...
分类:
编程语言 时间:
2017-06-18 11:52:57
阅读次数:
157
# 掷硬币500次N <- 500flipsequence <-sample(x=c(0,1),size = N,replace = TRUE,prob = c(0.5,0.5)) r <- cumsum(flipsequence) ##统计每项前出现1的次数矩阵n <- 1:N ##1~500的顺 ...
分类:
其他好文 时间:
2017-06-17 10:02:40
阅读次数:
184
Problem Description There are two strings A and B with equal length. Both strings are made up of lower case letters. Now you have a powerful string pa ...
分类:
其他好文 时间:
2017-06-14 11:37:37
阅读次数:
164
Daniel has a string s, consisting of lowercase English letters and period signs (characters '.'). Let's define the operation of replacement as the fol ...
分类:
其他好文 时间:
2017-06-14 11:31:15
阅读次数:
153
Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters. This ...
分类:
其他好文 时间:
2017-06-11 17:28:28
阅读次数:
164
Censored! http://poj.org/problem?id=1625 Time Limit: 5000MS Memory Limit: 10000K Description The alphabet of Freeland consists of exactly N letters. E ...
分类:
其他好文 时间:
2017-06-08 20:27:42
阅读次数:
284
000-- the way to define a string with several lines 001--to get specific letters from a string 002-- the common error message for new beginner while r ...
分类:
编程语言 时间:
2017-06-05 20:58:42
阅读次数:
205