题目链接:count-and-say
/**
*
The count-and-say sequence is the sequence of integers beginning as follows:
1, 11, 21, 1211, 111221, ...
1 is read off as "one 1" or 11.
11 is read off as "...
分类:
其他好文 时间:
2015-03-22 09:10:31
阅读次数:
217
poj1458——dp,lcsCommon SubsequenceTime Limit:1000MSMemory Limit:10000KTotal Submissions:40529Accepted:16351DescriptionA subsequence of a given sequence...
分类:
其他好文 时间:
2015-03-22 01:38:48
阅读次数:
140
因为是circle sequence,可以在序列最后+序列前n项(或前k项);利用前缀和思想,预处理出前i个数的和为sum[i],则i~j的和就为sum[j]-sum[i-1],对于每个j,取最小的sum[i-1],这就转成一道单调队列了,维护k个数的最小值。--------------------...
分类:
其他好文 时间:
2015-03-21 16:52:50
阅读次数:
214
题目‘?’ Matches any single character.
‘*’ Matches any sequence of characters (including the empty sequence).The matching should cover the entire input string (not partial).The function prototype should...
分类:
编程语言 时间:
2015-03-21 12:43:07
阅读次数:
190
Python 数据结构 本章介绍 Python 主要的 built-type,包括如下:Numeric types int floatText Sequence Type strBoolean boolSequence Types list tuple rangeM...
分类:
编程语言 时间:
2015-03-21 11:13:00
阅读次数:
147
Longest Ordered Subsequence
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 36159
Accepted: 15882
Description
A numeric sequence of ai is ordered if a1 a2 ...
分类:
其他好文 时间:
2015-03-21 09:49:34
阅读次数:
118
特征向量:跟踪框位置相对轨迹中心的比值,角度,速度。马尔科夫模型:State Sequence, q1 q2 ...... qTt个状态之间的转移可见,则这个时间序列的概率是πq1 × aq1q2 × ...... × aqT-1qT隐马尔科夫模型:状态不可见(隐藏),只能从观察值推测出,所以由观察...
分类:
其他好文 时间:
2015-03-21 01:06:22
阅读次数:
222
转载请注明出处:http://www.cnblogs.com/fraud/ ——by fraudSequenceTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submissio...
分类:
其他好文 时间:
2015-03-20 23:43:27
阅读次数:
173
ActivityManagerService (AMS) 是android系统中最核心的服务,主要负责四大组件的启动,切换,调度及应用程序的管理和调度等工作,其职责与操作系统中的进程管理和调度模块类似。
以system server中ActivityManagerService的调用轨迹分为以下四个部分:
Part 1: AMS.main
Part 2: AMS.setSystemP...
分类:
其他好文 时间:
2015-03-20 20:35:14
阅读次数:
228
The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1 is read off as "one 1" or 11.11 is read off ...
分类:
其他好文 时间:
2015-03-20 17:56:42
阅读次数:
99