A. Two Rabbits 题意: 求左右两只分别能跳a,b距离的兔子,是否能在同一点,如果能求最短时间。 cpp include using namespace std; string s[101]; int p[101]; string ans; int main(){ int t,n; ci ...
分类:
其他好文 时间:
2020-03-18 15:25:59
阅读次数:
61
摘自:http://www.ruanyifeng.com/blog/2013/07/rsa_algorithm_part_two.html 上一次,我介绍了一些数论知识。 有了这些知识,我们就可以看懂RSA算法。这是目前地球上最重要的加密算法。 六、密钥生成的步骤 我们通过一个例子,来理解RSA算法 ...
分类:
编程语言 时间:
2020-03-18 13:51:19
阅读次数:
65
程序计数器 虚拟机栈 本地方法栈 堆 (新生代和老生代) 新生代(eden,two survivor) 老生代(永久代(现在变成元数据)) 元数据->类的字节流,常量,静态方法 (metaSpace的默认值在64位中20.75M)当第一次满的时候回触发GC; GC的算法: 引用计数法,标识清理法,复 ...
分类:
其他好文 时间:
2020-03-17 19:24:31
阅读次数:
72
来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/two-sum 给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。 你可以假设每种输入只会对应一个答案。但是,你不能重复利用 ...
分类:
其他好文 时间:
2020-03-17 14:03:15
阅读次数:
47
原文连接:http://www.ruanyifeng.com/blog/2016/03/systemd-tutorial-part-two.html 上一篇文章,我介绍了 Systemd 的主要命令,今天介绍如何使用它完成一些基本的任务。 一、开机启动 对于那些支持 Systemd 的软件,安装的时... ...
分类:
其他好文 时间:
2020-03-17 13:49:59
阅读次数:
49
Given a matrix consists of 0 and 1, find the distance of the nearest 0 for each cell. The distance between two adjacent cells is 1. Example 1: Input: ...
分类:
其他好文 时间:
2020-03-16 23:35:41
阅读次数:
72
在图像处理种,经常需要计算两个矩形的重叠面积,在 python 中,可以使用 shapely 包中的 Polygon 函数,但是到了 c++ 没有想象中的那么简单。 查阅了很多资料,基本上都是判断两个矩形是否包含来计算,但是两个矩形的相交情况太多了,每个方法我都担心考虑不全,所以想了一个在画布上画出 ...
分类:
编程语言 时间:
2020-03-16 20:29:24
阅读次数:
70
python decorator is a crucial(vital,signifiant) process. decorator mail two category 1:principal function no arguments(parameters): for example: princ ...
分类:
编程语言 时间:
2020-03-15 22:19:20
阅读次数:
57
基本原理就不做介绍了, 很基础的数据结构课程知识.私下回顾即可,主要学习代码. 1.双指针 https://leetcode-cn.com/problems/two-sum-ii-input-array-is-sorted/description/?utm_source=LCUS&utm_mediu ...
分类:
编程语言 时间:
2020-03-15 13:20:39
阅读次数:
70
Leveraging V-Wires Bridge two physical connections and apply security Policies without influencing any routing decision(transparent Firewall inspectio ...
分类:
其他好文 时间:
2020-03-15 09:57:07
阅读次数:
59