题意:给定一个字符串,求有多少个奇数子串和多少偶数子串为 “回文串” 这边回文串很特殊之含有 ab 两种字母 而且 相邻的字母相同则消去一个 一直到不存在相邻的相同。思路: 在这种串中 ,消到最后 一定是 abababababa。。。 或者 bababababab。。。 那么 只要头尾一样 那么这个...
分类:
其他好文 时间:
2014-08-02 20:55:04
阅读次数:
169
AreaDescriptionBeing well known for its highly innovative products, Merck would definitely be a good target for industrial espionage. To protect its b...
分类:
其他好文 时间:
2014-08-02 12:14:33
阅读次数:
343
Shoulder bags are very nice to have, it can be fun and funky if you use it in the right clothes. It can also be a great gift to give your friends some...
分类:
其他好文 时间:
2014-08-01 12:52:31
阅读次数:
219
Description:A message containing letters fromA-Zis being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded m...
分类:
其他好文 时间:
2014-08-01 04:39:01
阅读次数:
167
哎,最近都在做图论,没有练DP,现在一遇到DP就不会了= =因为有合并这个操作,所以只要是首位相同的字符串肯定是能够构成good串的,那么只要统计在奇数位上出现的0,1的个数和偶数位数,随便递推一下就出来了#include #include #include #include #include #i...
分类:
其他好文 时间:
2014-07-31 23:34:50
阅读次数:
241
D -Count the stringTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionIt is well known that AekdyCoin is good at...
分类:
其他好文 时间:
2014-07-31 16:39:46
阅读次数:
215
The Plaza Beauty also are ghd cheap australia raffling off free refurbishments every hour. Some moat people that have long hair be needing being extra...
分类:
其他好文 时间:
2014-07-31 12:58:56
阅读次数:
204
javascript ?中的falsy值 6个:false null undefined 0(数字) NaN(数字) ?‘’最后一个指的是空字符串 其他为true, ? 包括‘false‘. from javascript good parts P26...
分类:
编程语言 时间:
2014-07-31 00:13:15
阅读次数:
262
Cutting Sticks
You have to cut a wood stick into pieces. The most affordable company, The Analog Cutting Machinery, Inc. (ACM), charges money according to the length of the stick being cut...
分类:
其他好文 时间:
2014-07-30 20:44:04
阅读次数:
263
Description
After coding so many days,Mr Acmer wants to have a good rest.So travelling is the best choice!He has decided to visit n cities(he insists on seeing all the cities!And he does not mind w...
分类:
其他好文 时间:
2014-07-30 17:37:14
阅读次数:
306