题目链接:https://codeforces.com/contest/1363/problem/E 题意 有一棵 $n$ 个结点,根为结点 $1$ 的树,每个结点有一个选取代价 $a_i$,当前数字 $b_i$,目标数字 $c_i$($1≤a_i≤10^9,0 ≤ b_i, c_i ≤ 1$),每 ...
分类:
其他好文 时间:
2020-06-01 11:58:59
阅读次数:
149
In this program, you'll learn to calculate the standard deviation using a function in Java. This program calculates the standard deviation of a indivi ...
分类:
编程语言 时间:
2020-06-01 01:00:16
阅读次数:
72
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is symmet ...
分类:
其他好文 时间:
2020-05-31 17:37:36
阅读次数:
56
by 豆豆 大家都知道当任务过多,任务量过大时如果想提高效率的一个最简单的方法就是用多线程去处理,比如爬取上万个网页中的特定数据,以及将爬取数据和清洗数据的工作交给不同的线程去处理,也就是生产者消费者模式,都是典型的多线程使用场景。 那是不是意味着线程数量越多,程序的执行效率就越快呢。 显然不是。线 ...
分类:
编程语言 时间:
2020-05-31 16:10:26
阅读次数:
63
这次我们来了解一个神奇的数据结构——树 作者ID:Kappa-010 树,其实跟我们现实生活中的树是差不多的。 它就是一个类似于现实生活中的树,是一个有分支 有层次 有品位有格调有修养 的数据结构。 如果你还不了解树这个数据结构的话,你可能认为树是这样的: 但事实正好相反,在数据结构当中,树的模样是 ...
分类:
其他好文 时间:
2020-05-31 13:06:53
阅读次数:
84
Metasploit初识:Aux辅助模块Exploits***模块Post后***模块Payloads***载荷模块Npps空指令模块Encoders编码器模块主动******例如sql注入,端口被动******例如xxs,浏览器漏洞armitage图形化启动命令msfcli命令行启动use***模块路径showpayloads显示***负荷showoptions显示***选项setRHOST目标主机IPRHOST=
分类:
Web程序 时间:
2020-05-31 09:27:00
阅读次数:
423
来自b站学习课程https://www.bilibili.com/video/BV19t411s7Jx?p=3P3 小节[root@tz script]# ping -c1 www.baidu.com &>/dev/null && echo "baidu is up" || echo "baidu ... ...
分类:
系统相关 时间:
2020-05-31 01:01:00
阅读次数:
73
Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest l ...
分类:
其他好文 时间:
2020-05-31 00:45:36
阅读次数:
52
#到mariaDB官网下载mariadb-5.5.68-linux-x86_64.tar.gz#http://sgp1.mirrors.digitalocean.com/mariadb//mariadb-5.5.68/bintar-linux-x86_64/mariadb-5.5.68-linux-x86_64.tar.gz1.解压并移动到安装目录tarxfmariadb-5.5.68-linux
分类:
数据库 时间:
2020-05-30 21:46:07
阅读次数:
163
centos下部署SVN 大多数情况下,我们日常工作中用的版本控制系统都会选择分布式的Git,它相比于集中式的SVN有很多优势。但是有些项目软件基于自身限制,可能只支持SVN做工程同步。废话就不多说了,下面记录下SVN的部署和使用过程: 安装SVN [root@svn_server ~]# rpm ...
分类:
其他好文 时间:
2020-05-30 20:02:00
阅读次数:
53