题意:求节点间的最大距离 先DFS一次 记录下 每一节点的子树下的最大距离(DP[ u ] [ 0 ])和第二大距离(DP[ u ] [ 1 ]) 用DP[ v ] [ 2 ] 表示由v的父节点来的最大距离 再取DP[ u ] [ 0 ] 与 DP[ u ][ 2 ] 的最值 #include <c ...
分类:
其他好文 时间:
2017-06-28 21:43:21
阅读次数:
164
今天发现springer引用文献默认是按照作者首字母排序,即使在导言区使用\usepackage[numbers]{natbib},那么你文中的参考文献序号顺序不是按行文顺序来的。 解决办法: Find the file spbasic.bst on your computer. Create a ...
分类:
编程语言 时间:
2017-06-27 18:46:08
阅读次数:
1432
1.内核配置pwm背光驱动make menuconfig:Device Driver > Graphics support > [*] Backlight & LCD device support > <*> Lowlevel Backlight controls <*> Generic PWM b ...
分类:
其他好文 时间:
2017-06-27 17:02:01
阅读次数:
2823
// Eddy 继续 Problem Description As is known, Ackermann function plays an important role in the sphere of theoretical computer science. However, in the ...
分类:
其他好文 时间:
2017-06-27 16:18:23
阅读次数:
159
使用java写一个简单的面向对象类的例子 编写一个电脑类,u盘类,光驱类,显示器类,电源类,电源一旦关闭,则内存无法访问 CDROM类 Power类 computer类 最终打印结果为 光驱打开光驱关闭 没开电源 通过上述列子了解了面向对象的基本内容,未来还很长 继续努力吧 ...
分类:
编程语言 时间:
2017-06-27 09:52:28
阅读次数:
108
链接:http://acm.hdu.edu.cn/showproblem.php?pid=2196 题意:每一个电脑都用线连接到了还有一台电脑,连接用的线有一定的长度,最后把全部电脑连成了一棵树,问每台电脑和其它电脑的最远距离是多少。 思路:这是一道树形DP的经典题目。须要两次DFS,第一次DFS找 ...
分类:
其他好文 时间:
2017-06-27 00:04:56
阅读次数:
219
Function Get-PendingReboot { <# .SYNOPSIS Gets the pending reboot status on a local or remote computer. .DESCRIPTION This function will query the regi ...
分类:
系统相关 时间:
2017-06-26 22:27:12
阅读次数:
201
Function Get-registerkey 引用前一篇文章中的代码的一部分做修改,从注册表中查询server的susid Function Get-registerkey { <# #> [CmdletBinding()] param( [Parameter(Position=0,ValueF ...
分类:
系统相关 时间:
2017-06-26 22:26:40
阅读次数:
232
Storyline Computer hackers are being portrayed as the newest brand of terrorists. This is a story of a hacker named Kevin Mitnick, imprisoned without ...
分类:
其他好文 时间:
2017-06-25 14:16:37
阅读次数:
117
unit UUpdateLeiBie; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.... ...
分类:
其他好文 时间:
2017-06-23 18:27:17
阅读次数:
237