HDU - 5405 答案相当于权值之和的平方减去把两点路径上的点扣掉以后所有子树的平方和。 然后用线段树维护每个点的轻儿子的权值平方和。 维护起来相当恶心, 我写了一晚上才调出来。。 ...
分类:
其他好文 时间:
2019-07-13 13:52:02
阅读次数:
110
链接: https://vjudge.net/problem/HDU 1054 题意: Bob enjoys playing computer games, especially strategic games, but sometimes he cannot find the solution f ...
分类:
其他好文 时间:
2019-07-10 23:09:56
阅读次数:
148
How to Create a Basic Plugin Sometimes you want to make a piece of functionality available throughout your code. For example, perhaps you want a singl ...
分类:
Web程序 时间:
2019-07-01 10:31:01
阅读次数:
160
I sometimes put what I hate most in my code, because I have to interact with somebody in my code, I have friends, I have enemies, I have what I hate v ...
分类:
其他好文 时间:
2019-06-07 19:09:41
阅读次数:
113
Unlike ceiling lamps, floor lamps, chandeliers, lamps that can sometimes rely on "faces", LED ceiling lamps and LED ceiling lamps have always relied o ...
分类:
其他好文 时间:
2019-05-30 15:54:52
阅读次数:
76
Sometimes you don't work hard, you don't know what is despair. 新公司入职56天后的面谈小结 今天2019-4-30,我是2019-3-4命运和这家新公司绑在一起的,历时56天;今天在五一放假之前,公司的杨总和我好好聊了一波,大概两个多小 ...
分类:
其他好文 时间:
2019-05-01 01:28:42
阅读次数:
150
#1 – Hacking Tutorial: Tech Tips and Hacking Tricks Sometimes, perfect English isn’t everything. Hacking Tutorial is an example of when the writing sk ...
分类:
Web程序 时间:
2019-04-20 09:59:17
阅读次数:
1125
Problem Description Zero has an old printer that doesn't work well sometimes. As it is antique, he still like to use it to print articles. But it is t ...
分类:
其他好文 时间:
2019-03-28 14:04:46
阅读次数:
184
29. What Makes a True Leader ? 合格的领导者由何物决定 ? ① Reading leadership literature,you'd sometimes think that everyone has the potential to be an effective ... ...
分类:
其他好文 时间:
2019-03-04 19:07:32
阅读次数:
370
The greatest common divisor GCD(a,b) of two positive integers a and b,sometimes written (a,b),is the largest divisor common to a and b,For example,(1, ...
分类:
其他好文 时间:
2019-02-13 22:59:41
阅读次数:
384