题目大意:
对一颗树上进行路径加减,然后询问单点的值。
思路分析:
简单的树链剖分模板题。
#include
#include
#include
#include
#pragma comment(linker,"/STACk:10240000,10240000")
#define maxn 50005
#define lson num<<1,s,mid
#define rs...
分类:
其他好文 时间:
2014-08-20 22:43:03
阅读次数:
292
Exception in thread "main" java.lang.NoSuchMethodError: scala.collection.immutable.HashSet$.empty()Lscala/collection/immutable/HashSet;
at akka.actor.ActorCell$.(ActorCell.scala:336)
at akka.actor.Act...
分类:
其他好文 时间:
2014-08-20 22:41:43
阅读次数:
982
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define inf 0x3f3f3f3f
#pragma comment(linker, "/STACK:16777216")
#define eps 1e-6
#define ll long l...
分类:
其他好文 时间:
2014-08-20 21:14:02
阅读次数:
248
1、错误描述
八月 20, 2014 7:10:18 下午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [jsp] in context with path [/FusionCharts] threw exception [java.lang.NoClassDefFo...
分类:
编程语言 时间:
2014-08-20 19:38:52
阅读次数:
281
(1)数据库驱动问题
log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" org.hibernate.Hibern...
分类:
系统相关 时间:
2014-08-20 16:22:52
阅读次数:
229
今天在ubuntu14.04.1上安装了Androiddevelopmenttools,直接在官网下载的,解压后打开Eclipse出现了Cannotrunprogram的错误,网上一搜发现是64位系统的问题,在网上overflow找到了如下解决方法:Beforeubuntu12.04,youmustinstallia32-libssudoapt-getinstallia32-libs较新版本..
分类:
系统相关 时间:
2014-08-20 14:26:23
阅读次数:
260
import java.io.*;
import java.net.*;
class TextClient
{
public static void main(String[] args) throws Exception
{
Socket s = new Socket("192.168.1.104",10010);
BufferedReader bufr =
new Buff...
分类:
编程语言 时间:
2014-08-20 14:11:22
阅读次数:
223
1、存储过程创建格式: create [or replace] procedure procedure_name(参数) as/is 声明部分 begin 执行部分 [exception 异常处理部分] end; 注:(1).中括号为可选部分,即在一个存储过程中可以有也...
分类:
数据库 时间:
2014-08-20 14:02:33
阅读次数:
309
一、注意点一Z9000和4810类似,都需要在做任何操作前敲上reload-typenormal-reload,防止操作不生效。二、Z9000将40G接口分割成4x10G接口命令:Stack-unit0portXportmodequad【x表示哪个接口】(一)Qsfp是40g口,sfp+就是10g,sfp就是千兆也就是1g口。(二)接口分割后需要重..
分类:
其他好文 时间:
2014-08-20 10:37:56
阅读次数:
459
[root@athController~]#novalistERROR:Anunexpectederrorpreventedtheserverfromfulfillingyourrequest.(OperationalError)(1040,‘Toomanyconnections‘)NoneNone(HTTP500)解决办法:key_buffer=64Mmax_allowed_packet=16Mthread_stack=192Kthread_cache_size=8myisam-recover=B..
分类:
数据库 时间:
2014-08-20 10:35:46
阅读次数:
437