DescriptionA subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = another sequence....
分类:
其他好文 时间:
2015-08-14 21:12:47
阅读次数:
145
自动增长字段在设计数据库的时候,有时需要表的某个字段是自动增长的,最常使用自动增长字段的就是表的主键,使用自动增长字段可以简化主键的生成.不同的DBMS中自动增长字段的实现机制也有不同,下面分别介绍。MYSQL中设定一个字段为自动增长字段非常简单,只要在表定义中指定字段为..
分类:
数据库 时间:
2015-08-14 19:31:23
阅读次数:
150
Max Sum
Problem Description
Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the max sum in this sequence is...
分类:
其他好文 时间:
2015-08-14 19:06:00
阅读次数:
118
原题: http://acm.hdu.edu.cn/showproblem.php?pid=1005题目大意:
按规律求出第n项。
由矩阵乘法我们可以知道:
所以对于fib数列我们可以用矩阵来求,由于矩阵可以左乘右乘,所以我们可以用快速幂来优化。#include
#include"string.h"
#include
using namespace st...
分类:
其他好文 时间:
2015-08-14 17:11:16
阅读次数:
110
Description
If a and d are relatively prime positive integers, the arithmetic sequence beginning with a and increasing by d, i.e., a, a + d, a + 2d, a + 3d, a +
4d, ..., contains infinitely man...
分类:
其他好文 时间:
2015-08-14 17:07:58
阅读次数:
77
09-散列1. Hashing (25)时间限制100 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者CHEN, YueThe task of this problem is simple: insert a sequence of distinct positiv...
分类:
其他好文 时间:
2015-08-14 15:10:03
阅读次数:
100
题意:裸kmp思路:kmp模板#include#include#includeusing namespace std;#define MaxSize 10005int s[1000005],t[10005];int next2[MaxSize];void GetNext(int t[],int le...
分类:
其他好文 时间:
2015-08-14 13:37:05
阅读次数:
109
题意:给你一个a串和一个b串,问b串是否是a串的子串,如果是返回b在a中最早出现的位置,否则输出-1分析:应该是最简单的模板题了吧.....代码如下:===========================================================================...
分类:
其他好文 时间:
2015-08-14 13:36:58
阅读次数:
170
序列create sequence sq_1minvalue 1maxvalue 9999999999999999999999999999start with 1increment by 1cache 2000;触发器create or replace trigger 触发器名字 before i....
分类:
数据库 时间:
2015-08-14 13:18:05
阅读次数:
173
Common Subsequence
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 43303
Accepted: 17580
Description
A subsequence of a given sequence is the given sequence ...
分类:
其他好文 时间:
2015-08-13 22:28:17
阅读次数:
135