Problem Description
In this problem, you are given a string s and q queries.
For each query, you should answer that when all distinct substrings of string s were sorted lexicographically, which ...
分类:
其他好文 时间:
2014-10-03 16:56:54
阅读次数:
249
Amoeba for MySQL2014年2月4日| 标签:来源:http://docs.hexnova.com/amoeba/Amoeba for MySQL致力于MySQL的分布式数据库前端代理层,它主要在应用层访问MySQL的时候充当query 路由功能,专注 分布式数据库 proxy 开发。...
分类:
数据库 时间:
2014-10-03 06:01:44
阅读次数:
429
第一眼觉得是区间众数,后来发现其实不用那么难,就是主席树,query的操作改一下而已。。。"主席树就是好多棵线段树连来连去"(喂,这句话也太简略了点的说。。。) 1 /************************************************************** 2 ....
分类:
其他好文 时间:
2014-10-02 20:40:03
阅读次数:
254
SPOJ Problem Set (classical)
375. Query on a tree
Problem code: QTREE
You are given a tree (an acyclic undirected connected graph) with N nodes, and edges numbered
1, 2, 3...N-1.
We wi...
分类:
其他好文 时间:
2014-10-02 12:56:22
阅读次数:
232
PHP 二维数组传递给 js 二维数组,使用json_encode()转化成json,某一维数组变成空 :编码不是utf8
以及wamp mysql中文变 ? 问题:header("Content-Type: text/html; charset=utf8") ;mysqli_query($con,"set character set 'utf8'");
mysqli_query($con,"set names 'utf8'");...
分类:
Web程序 时间:
2014-10-02 02:19:41
阅读次数:
211
实例1:仅仅返回单一记录集的存储过程。银行存款表(bankMoney)的内容例如以下IduserIDSexMoney001Zhangsan男30002Wangwu男50003Zhangsan男40要求1:查询表bankMoney的内容的存储过程create procedure sp_query_ba...
分类:
数据库 时间:
2014-10-01 22:16:51
阅读次数:
305
题意:给一棵树,每次更新某条边或者查询u->v路径上的边权最大值。解法:做过上一题,这题就没太大问题了,以终点的标号作为边的标号,因为dfs只能给点分配位置,而一棵树每条树边的终点只有一个。询问的时候,在从u找到v的过程中顺便查询到此为止的最大值即可。代码:#include #include #in...
分类:
其他好文 时间:
2014-10-01 12:00:11
阅读次数:
254
刚開始接触android的时候,每次用数据库都会犹豫使用哪种方式,一种是getContentResolver().query(...),还有一种是managedQuery(...),后来习惯了使用前一种,后一种就被我遗忘了,可是在实际做项目时,有时数据库常常会报cursor not close的.....
分类:
其他好文 时间:
2014-10-01 11:56:20
阅读次数:
232
URL、URI、URNURL:protocol :// hostname[:port] / path / [;parameters][?query]#fragment
分类:
编程语言 时间:
2014-10-01 00:28:10
阅读次数:
182
/program/www/.htaccessRewriteEngine On RewriteBase / RewriteCond $1 !^(optimizer\.php)RewriteRule ^(.*)$ index.php?controller=$1&%{QUERY_STRING} [L]??...
分类:
其他好文 时间:
2014-09-30 19:35:30
阅读次数:
163