码迷,mamicode.com
首页 >  
搜索关键字:divide two integers    ( 17573个结果
Codeforces Round #620 (Div. 2) 题解
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
RSA算法原理(二)
摘自:http://www.ruanyifeng.com/blog/2013/07/rsa_algorithm_part_two.html 上一次,我介绍了一些数论知识。 有了这些知识,我们就可以看懂RSA算法。这是目前地球上最重要的加密算法。 六、密钥生成的步骤 我们通过一个例子,来理解RSA算法 ...
分类:编程语言   时间:2020-03-18 13:51:19    阅读次数:65
[LintCode] 1844. subarray sum equals k II
Given an array of integers and an integer k, you need to find the minimum size of continuous subarrays whose sum equals to k, and return its length. i ...
分类:其他好文   时间:2020-03-18 09:33:00    阅读次数:42
JVM的内存模式
程序计数器 虚拟机栈 本地方法栈 堆 (新生代和老生代) 新生代(eden,two survivor) 老生代(永久代(现在变成元数据)) 元数据->类的字节流,常量,静态方法 (metaSpace的默认值在64位中20.75M)当第一次满的时候回触发GC; GC的算法: 引用计数法,标识清理法,复 ...
分类:其他好文   时间:2020-03-17 19:24:31    阅读次数:72
leetcode 1 两数之和
来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/two-sum 给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。 你可以假设每种输入只会对应一个答案。但是,你不能重复利用 ...
分类:其他好文   时间:2020-03-17 14:03:15    阅读次数:47
Systemd 入门教程:实战篇
原文连接:http://www.ruanyifeng.com/blog/2016/03/systemd-tutorial-part-two.html 上一篇文章,我介绍了 Systemd 的主要命令,今天介绍如何使用它完成一些基本的任务。 一、开机启动 对于那些支持 Systemd 的软件,安装的时... ...
分类:其他好文   时间:2020-03-17 13:49:59    阅读次数:49
[CodeForces] 1325D Ehab the Xorcist
Given 2 integers u and v, find the shortest array such that bitwise-xor of its elements is u, and the sum of its elements is v. Input The only line co ...
分类:其他好文   时间:2020-03-17 08:26:52    阅读次数:63
HTML常用实体符号代码
较常用的 < &lt; < 小于号 > &gt; > 大于号 ≤ &le; ≤ 小于等于号 ≥ &ge; ≥ 大于等于号 × &times; × 乘号 ÷ &divide; ÷ 除号 ? &minus; ? 减号 ± &plusmn; ± 加/减 号 ≠ &ne; ≠ 不等于号 ¹ &sup1; ¹ ...
分类:Web程序   时间:2020-03-16 23:53:38    阅读次数:131
[LeetCode] 01 Matrix 零一矩阵
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
c++ 计算两个矩形重叠面积 (粗略版)(c++ calculate the overlap area of two rectangles, a rough version)
在图像处理种,经常需要计算两个矩形的重叠面积,在 python 中,可以使用 shapely 包中的 Polygon 函数,但是到了 c++ 没有想象中的那么简单。 查阅了很多资料,基本上都是判断两个矩形是否包含来计算,但是两个矩形的相交情况太多了,每个方法我都担心考虑不全,所以想了一个在画布上画出 ...
分类:编程语言   时间:2020-03-16 20:29:24    阅读次数:70
17573条   上一页 1 ... 55 56 57 58 59 ... 1758 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!