/*ID: lucien23PROG: sort3LANG: C++*/#include #include #include #include using namespace std;void exchange(int nums[], int begin, int end, int N, int x...
分类:
其他好文 时间:
2014-08-13 00:37:14
阅读次数:
210
KMP算法的定义及KMP练手题 HDU 1711 Number Sequence (我的KMP模板代码)...
分类:
其他好文 时间:
2014-08-12 22:14:05
阅读次数:
253
What is Build Lifecycle?ABuild Lifecycleis a well defined sequence of phases which define the order in which the goals are to be executed. Here phase ...
分类:
其他好文 时间:
2014-08-12 18:29:34
阅读次数:
228
最常用的字符实体Character Entities显示说明实体名称实体编号半方大的空白  全方大的空白  不断行的空白格 大于>>&&符号&&"双引号""©版权©©®已注册商标...
分类:
Web程序 时间:
2014-08-12 18:24:34
阅读次数:
624
Number SequenceTime Limit: 10000/3000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 895 Accepted Submission(s): 37...
分类:
其他好文 时间:
2014-08-12 16:13:14
阅读次数:
269
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.For e...
分类:
其他好文 时间:
2014-08-12 12:51:34
阅读次数:
203
Parenthese sequence
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)
Total Submission(s): 716 Accepted Submission(s): 335
Problem Description
bobo f...
分类:
其他好文 时间:
2014-08-12 10:23:23
阅读次数:
199
先从最基础的矩阵快速幂加速递推开始。HDU 1005 Number Sequence|f[n-2],f[n-1]|* |0 B| =|f[n-1], B*f[n-2]+A*f[n-1]|=|f[n-1],f[n]| |1 A|建立矩阵如上然后利用快速幂求解即可。答案是mat[0][1...
分类:
其他好文 时间:
2014-08-12 10:04:03
阅读次数:
267
类图描述的是类之间的静态关系,而序列图展示的是对象之间的沟通方法,描述运行时的交互关系。
OOP编程语言里面合理的直接交互方式只有一种,方法调用(Event通讯是间接的)。所以序列图也可以
理解为方法调用交互图。方法调用有四个元素,参与者(两个,调用者和被调用者),方法名称,输入
和输出。
参与者
参与者用一个Lifeline来表示,图像为一个矩形外加底部的一条竖线。矩形里面显示对象名,...
分类:
其他好文 时间:
2014-08-11 21:36:32
阅读次数:
409
# include
# include
# include
using namespace std;
int n,m,next[10010],a[1000010],b[10010];
void Getnext()
{
int i=0,j=-1;
next[0]=-1;
while(i<m)
{
if(j==-1||b[i]==b[j])
...
分类:
其他好文 时间:
2014-08-11 21:27:33
阅读次数:
240