1. 基本查询: 构造查询数据。 > db.test.findOne() { "_id" : ObjectId("4fd58ecbb9ac507e96276f1a"), "name" : "stephen", "age" : 35, "genda" : "male", "email" : "step...
分类:
数据库 时间:
2014-06-28 17:08:13
阅读次数:
273
在之前的文章中,通过SharePoint Central Administration 创建了Web Application。在这篇文章中将继续SharePoint 2013之旅——还是以Step By Step的形式演示如何在SharePoint 2013中创建Site Collection(网站...
分类:
其他好文 时间:
2014-06-28 15:51:18
阅读次数:
205
题目给出一个长为2000的字符串,和10000询问,每次询问从第l到第r个字符中间有多少个不同的子串。其实,全部预处理。f[i][j]表示从i到j个字符的子串数。重构2000遍SAM。对于新加入的字符,其所对应的last点,新增加的新子串数位step[last]-step[pre[last]]。原因...
分类:
其他好文 时间:
2014-06-23 07:14:40
阅读次数:
220
题目意思是给你一个字符串,f[x]是长度为x的子串中,出现个数最多的那个串的出现次数。给出原串,依次输出f[1],f[2],……。后缀自动机。对于某一个状态,right[]值的大小就是出现的次数,而且是对于长为step[]的子串的出现次数。因为小于step值的串在前面已经加了,在pre指针线上面的状...
分类:
其他好文 时间:
2014-06-23 07:14:18
阅读次数:
254
最近工作忙,本来不打算写,但是看看网络上这方面的资源确实少,很多都是linux的(我更爱unix,哈哈),而且很多是直接引入上一篇文章的编译结果来做的。对于使用opencv但是又老是被ffmpeg库坑害的朋友们,可能又爱又恨,毕竟用它处理和分析视频是第一选择,不仅是因为2者配合使用方便,而且ffmp...
Given a triangle, find the minimum path sum from top to bottom. Each step you may
move to adjacent numbers on the row below.
For example, given the following triangle
[
[2],...
分类:
其他好文 时间:
2014-06-22 17:07:52
阅读次数:
166
经典搜索 1 #include 2 #include 3 using namespace std; 4 5 const int MAX=10; 6 7 int step[MAX][MAX]; 8 char maze[MAX][MAX]; 9 int n,m,t;10 struct {11 ...
分类:
其他好文 时间:
2014-06-21 07:12:00
阅读次数:
218
Triangle:Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, give...
分类:
其他好文 时间:
2014-06-21 07:02:07
阅读次数:
203
1cs3157 – Advanced ProgrammingSummer 2014, Project 1, 150 pointsJune 17, 2014Follow these step-by-step instructions. This homework must be submitted e...
分类:
编程语言 时间:
2014-06-20 23:18:24
阅读次数:
424
和上个题目差不多,这次是找若干个串的LCS,若干#include #define maxn 200100using namespace std;int next[maxn][26],pre[maxn],step[maxn];int f[13][maxn];int N=0,last=0,n=1;int...
分类:
其他好文 时间:
2014-06-20 18:49:21
阅读次数:
153