题意: 给一棵树,求出每一点到树上其他点的最远距离 思路: ①我们先考虑一个点到其子树中的点的最远距离 定义1.dp[i][0]是以i号节点为跟到其子树的最远距离 2.dp[i][1]是以i号节点为跟到其子树的次远距离(为什么维护这个后面可以知道) 3.son[i]是以i号节点为根的的子树中距离i最 ...
分类:
其他好文 时间:
2020-01-23 22:52:28
阅读次数:
102
最近在研究OpenCV,希望能通过机器视觉解决一些网络安全领域的问题。本文简要介绍如何通过OpenCV实现简单的图像识别,并让计算机通过“视觉”自动玩一个简单的2D小游戏,文末有视频演示及完整代码。 0x01 OpenCV介绍 Open Source Computer Vision Library. ...
分类:
其他好文 时间:
2020-01-22 22:05:42
阅读次数:
104
1、几个重要的快捷键 (1) Tab 命令补齐或文件补齐 vtas@vtas-computer:~$ ca[tab][tab] cal calibrate_ppa canberra-gtk-play capsh case catchsegv cautious-launcher calendar ca ...
分类:
系统相关 时间:
2020-01-21 00:40:55
阅读次数:
98
windows下使用itunes进行iphone备份的时候,会发现备份的路径无法修改。默认为:C:\Users\[用户名]\AppData\Roaming\Apple Computer\MobileSync\Backup 。但将备份文件放在系统盘显然不太安全,而且随着iphone备份文件越来越大,也 ...
分类:
其他好文 时间:
2020-01-19 12:52:18
阅读次数:
115
In computer science, a heap is a specialized tree-based data structure that satisfies the heap property: if P is a parent node of C, then the key (the ...
分类:
其他好文 时间:
2020-01-17 21:13:06
阅读次数:
93
In computer science, a heap is a specialized tree-based data structure that satisfies the heap property: if P is a parent node of C, then the key (the ...
分类:
其他好文 时间:
2020-01-17 20:50:35
阅读次数:
68
find结合grep模糊匹配文件搜索关键字 不知道哪个单词在哪个文件里面可以使用这种方法 ...
分类:
系统相关 时间:
2020-01-15 14:10:57
阅读次数:
100
Self-supervised learning and computer vision 2020-01-15 08:05:47 Source: https://www.fast.ai//2020/01/13/self_supervised/ Introduction to self-supervi ...
分类:
其他好文 时间:
2020-01-15 09:35:25
阅读次数:
164
1.查看当前的主机名 [root@fangjian ~]# hostnamectl Static hostname: brace Pretty hostname: Brace Icon name: computer-vm Chassis: vm Machine ID: 201912251116078 ...
分类:
系统相关 时间:
2020-01-14 13:33:19
阅读次数:
104
simple faster RCNN 代码地址: https://github.com/chenyuntc/simple-faster-rcnn-pytorch/tree/master 作者解析: https://zhuanlan.zhihu.com/p/32404424 YOLOv3 代码地址: ...
分类:
编程语言 时间:
2020-01-13 14:39:13
阅读次数:
97