又是差分,然后利用标记求和求某对点lca的dep 比如求a,b lca的dep,则把根到a的所有点标记,再在根到b的路径上求和, 于是就可以树剖了。前缀和差分一下就好了。 想打主席树,没有实现, 在线主席树具体可见[Troywar]。 1 #include<cstdio> 2 #include<cs ...
分类:
其他好文 时间:
2017-11-06 14:56:26
阅读次数:
219
Which of the following is not a configurable attribute for an individual disk group?A. AU_SIZEB. COMPATIBLE.RDBMSC. COMPATIBLE.ASMD. DISK_REPAIR_TIMEE ...
分类:
其他好文 时间:
2017-11-06 13:57:41
阅读次数:
157
1 from win32com.client import Dispatch 2 import win32com.client 3 import time 4 5 # 获取excel 对象 6 7 excel = win32com.client.Dispatch('Excel.Application... ...
1.情况简述 Beta阶段Scrum Meeting 敏捷开发起止时间 2017.11.6 00:00 -- 2017.11.7 00:00 讨论时间地点 2017.11.6 早9:30,电话会议会议 参与人员 项目组全体成员 会议基本内容摘要 描述当天任务完成情况,整合进度,布置明天任务 讨论时长 ...
分类:
其他好文 时间:
2017-11-06 12:12:07
阅读次数:
232
Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection between a lette ...
分类:
其他好文 时间:
2017-11-06 11:19:48
阅读次数:
175
阶梯T-SQL:超越基础6级:使用CASE表达式和IIF函数作者:Gregory Larsen,2016/04/20(第一次发布:2014/04/09)该系列本文是阶梯系列的一部分:T-SQL阶梯:超越基础下面来看它的阶梯T-SQL DML,Gregory Larsen涵盖了更多的高级方面的T-SQ ...
分类:
其他好文 时间:
2017-11-06 00:40:02
阅读次数:
178
#include<iostream>#include<cstdio>#include<cstring>using namespace std; const int max_v=100;const int INF=1<<20;int V,E;int d[max_v];bool used[max_v]; ...
分类:
其他好文 时间:
2017-11-06 00:39:43
阅读次数:
225
会输出 A.JS里的内容 node B.js 执行 (三)ADM规范 AMD规范是"Asynchronous Module Definition"的缩写 意思就是异步模块定义 AMD更适合浏览器加载 AMD也是用require()语句加载模块,但是不同于CommonJS,它要求两个参数 requir ...
分类:
Web程序 时间:
2017-11-06 00:37:40
阅读次数:
212
分别递归遍历左右子树,并且做比较,选取深度大的一支 /** * Definition of TreeNode: * class TreeNode { * public: * int val; * TreeNode *left, *right; * TreeNode(int val) { * this ...
分类:
其他好文 时间:
2017-11-05 23:34:33
阅读次数:
193
列表生成式 列表生成式是python受欢迎的语法之一,通过一句简洁的语法就可以对一组元素进行过滤,还可以对得到的元素进行转换处理。语法格式为: [exp for val in collection if condition] 相当于 解释: 1, 以此取出xrange(10)从0到9的数字 2, 判 ...
分类:
编程语言 时间:
2017-11-05 23:33:38
阅读次数:
310