树的直径+统计连通块数。 和树的直径的模板题不同的是要求出所有能够构成直径两个端点的点,即为最深的根。 注意对$n=1$的特殊处理,这个corner case还是挺好想的,第一次交$23$分,调试一下就发现了。 由于要从小到大输出所有最深的根,故将它们全部插入集合中输出。 连通分量直接dfs统计就行 ...
分类:
其他好文 时间:
2021-01-27 13:11:33
阅读次数:
0
Integer Inquiry poj1503 题目 Problem Description One of the first users of BIT's new supercomputer was Chip Diller. He extended his exploration of power ...
分类:
其他好文 时间:
2021-01-27 13:01:44
阅读次数:
0
SSL/TLS协议信息泄露漏洞(CVE-2016-2183) TLS是安全传输层协议,用于在两个通信应用程序之间提供保密性和数据完整性。 TLS, SSH, IPSec协商及其他产品中使用的DES及Triple DES密码存在大约四十亿块的生日界,这可使远程攻击者通过Sweet32攻击,获取纯文本数 ...
分类:
其他好文 时间:
2021-01-27 12:51:30
阅读次数:
0
C++使用类成员函数作为线程启动函数 1、使用非静态成员函数作为线程启动函数 示例: #include<thread> #include<iostream> #include "Server.h" #include<Windows.h> #include<chrono> using namespac ...
分类:
编程语言 时间:
2021-01-26 12:27:29
阅读次数:
0
LSTM原理 CNN卷积神经网络 应用:图像,视频 RNN 递归神经网络 应用:NLP 1RNN结构 one to one 比如输入一张图片,它会给我们输出是猫还是狗 one to many 比如输入一张图片,给出一些列图片描述 many to one 比如文本分析,给出文本是积极还是消极的 man ...
分类:
其他好文 时间:
2021-01-26 12:10:00
阅读次数:
0
Chapter 4 - Clustering Models Segment 3 - DBSCan clustering to identify outliers DBSCAN for Outlier Detection Unsupervised method that clusters core s ...
分类:
数据库 时间:
2021-01-26 11:57:37
阅读次数:
0
Power Strings Description Given two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcde ...
分类:
其他好文 时间:
2021-01-26 11:47:12
阅读次数:
0
许久没有写博客了,最近由于公司竞标需要,之前使用的第三方录屏软件,不是收费限制、就是录屏时长限制,而且2K、4K屏幕不能很好的兼容录制,于是我自己随手写了个基于Windows录屏小软件; 基础功能: 1、 可录制windows 视频 ; 2、 可录制windows音频; 3、 可录制windows麦 ...
删除数据库时提示:message:Database DBname is not empty. One or more tables exist. ##解决方案1: 先删除数据库中的所有表,再删除数据库 ##解决方案2: 强制删除 drop database db_hive cascade; ...
分类:
数据库 时间:
2021-01-26 11:44:00
阅读次数:
0
下载zsh sudo apt-get install zsh sudo apt-get install git 下载oh-my-zsh 因为zsh配置起来太麻烦了,直接安装oh-my-zsh即可,前往oh-my-zsh官网: https://ohmyz.sh 使用命令: $ sh -c "$(cur ...
分类:
系统相关 时间:
2021-01-26 11:42:41
阅读次数:
0