
字符串
SCUT_Pein
这个作者很懒,什么都没留下…
展开
-
POJ1936--All in All
DescriptionYou have devised a new encryption technique which encodes a message by inserting between its characters randomly generated strings in a clever way. Because of pending patent issues we wil原创 2013-02-14 16:20:42 · 564 阅读 · 0 评论 -
POJ2039--To and Fro--字符串水题
DescriptionMo and Larry have devised a way of encrypting messages. They first decide secretly on the number of columns and write the message (letters only) down the columns, padding with extra rando原创 2013-02-22 20:01:19 · 1017 阅读 · 0 评论 -
F[x]
DescriptionWe define function F like this: if(x==1) F[x]=1; else if(x%2==1) F[x]=2*F[x/2]+1; else F[x]=2*F[x/2]-1.Of course it is easy for us to w原创 2013-03-11 15:41:38 · 848 阅读 · 0 评论 -
Surprising Strings--映射
DescriptionThe D-pairs of a string of letters are the ordered pairs of letters that are distance D from each other. A string is D-unique if all of its D-pairs are different. A string is surprisi原创 2013-03-12 19:15:07 · 789 阅读 · 0 评论 -
POJ1080--Human Gene Functions
DescriptionIt is well known that a human gene can be considered as a sequence, consisting of four nucleotides, which are simply denoted by four letters, A, C, G, and T. Biologists have been interest原创 2013-03-14 18:43:59 · 735 阅读 · 0 评论 -
POJ1159--Palindrome
DescriptionA palindrome is a symmetrical string, that is, a string read identically from left to right as well as from right to left. You are to write a program which, given a string, determines the原创 2013-03-15 08:29:58 · 842 阅读 · 0 评论 -
POJ2778
DescriptionIt's well known that DNA Sequence is a sequence only contains A, C, T and G, and it's very useful to analyze a segment of DNA Sequence,For example, if a animal's DNA sequence contains s转载 2013-05-29 09:51:23 · 982 阅读 · 0 评论 -
UVA11475--Extend to Palindrome
Your task is, given an integer N, to make a palidrome (word that reads the same when you reverse it) of length at least N. Any palindrome will do. Easy, isn't it? That's what you thought before you pa原创 2014-03-05 21:58:43 · 1170 阅读 · 0 评论 -
POJ1699--Best Sequence(预处理+暴力)
DescriptionThe twenty-first century is a biology-technology developing century. One of the most attractive and challenging tasks is on the gene project, especially on gene sorting program. Recentl原创 2014-03-28 19:05:38 · 1329 阅读 · 0 评论