操作1:修改第k条边权。
操作2:询问两点间最大边权。
树链剖分,然后线段树维护最大值
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define eps 1e-12
#define INF 0x7fffffff
#define maxn 11111
...
分类:
其他好文 时间:
2014-08-20 14:08:32
阅读次数:
267
Given a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,2,3].Not...
分类:
其他好文 时间:
2014-08-20 14:01:43
阅读次数:
202
Given a binary tree, return thepostordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[3,2,1].No...
分类:
其他好文 时间:
2014-08-20 13:58:32
阅读次数:
236
Problem Description
After inventing Turing Tree, 3xian always felt boring when solving problems about intervals, because Turing Tree could easily have the solution. As well, wily 3xian made lots of n...
分类:
其他好文 时间:
2014-08-20 12:36:32
阅读次数:
382
There are n trees planted in lxhgww's garden. You can assume that these trees are planted along the X-axis, and the coordinate of ith tree is xi.But i...
分类:
其他好文 时间:
2014-08-20 02:30:35
阅读次数:
347
Here is a class for binary trees that directly implements the recursive definition. By extending the AbstractCollectionclass, it remains consistent with the Java Collections Framework....
分类:
其他好文 时间:
2014-08-20 00:04:26
阅读次数:
307
1.Visual Tree和Logical TreeLogical Tree:逻辑树,WPF中用户界面有一个对象树构建而成,这棵树叫做逻辑树,元素的声明分层结构形成了所谓的逻辑树!!Visual Tree:可视树(也叫视觉树),可视树是对逻辑树的扩展,可视树将逻辑树的节点打散,分放到核心棵树组件中,...
分类:
其他好文 时间:
2014-08-19 22:15:15
阅读次数:
316
Given a(decimal -e.g. 3.72)number that is passed in as a string, print the binary representation. If the number can not be represented accurately in b...
分类:
其他好文 时间:
2014-08-19 22:04:15
阅读次数:
233
XtraBackupXtraBackup.. 12 安装XtraBackup.. 12.1 安装XtraBackup binary版本... 12.1.1 yum的安装方法:... 12.1.2 直接下载rpm包安装... 13 XtraBackup使用手册... 13.1 使用innobackup...
分类:
其他好文 时间:
2014-08-19 18:43:25
阅读次数:
415