在幼儿园的时候,我们就学习过把一个数分成$a$与$b$,我们只需要用计算机来模拟这个过程就可以了。 我们先从奇数开始看起,以$5$为例: 我们可以发现,$5$可以分成$1$和$4$,$2$和$3$,$3$和$2$,以及$4$和$1$,也就是说,一个奇数可以有$n 1$种方法进行分解,去重后也就是$( ...
分类:
其他好文 时间:
2020-02-28 12:25:22
阅读次数:
66
专题二:基于色度的单幅图像镜面反射分量的分离——像素点的分类 一、像素点分类的标准 回忆一下双色反射模型如下: $$\mathbf{I\left ( p \right )} = m_{d}\left ( p \right )\mathbf{I_{d}\left ( p \right )}+m_{s} ...
分类:
其他好文 时间:
2020-02-26 22:29:23
阅读次数:
73
题目链接:https://leetcode-cn.com/problems/add-two-numbers/ 给出两个 非空 的链表用来表示两个非负的整数。其中,它们各自的位数是按照 逆序 的方式存储的,并且它们的每个节点只能存储 一位 数字。 如果,我们将这两个数相加起来,则会返回一个新的链表来表 ...
分类:
其他好文 时间:
2020-02-26 20:49:23
阅读次数:
57
Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules ...
分类:
其他好文 时间:
2020-02-26 18:40:18
阅读次数:
62
A. Two Rabbits "原题" Problem Restatement 两个兔子以恒定速度相向而行,求相遇时间?若无法在整时间相遇,输出$ 1$ Solution 相遇问题,距离除以总速度为时间,看时间是否为整数即可。 Code ...
分类:
其他好文 时间:
2020-02-25 09:37:51
阅读次数:
43
1 """ 2 Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of ...
分类:
其他好文 时间:
2020-02-24 16:59:06
阅读次数:
82
LeetCode 1362. Closest Divisors最接近的因数【Medium】【Python】【数学】 Problem "LeetCode" Given an integer , find the closest two integers in absolute difference w ...
分类:
编程语言 时间:
2020-02-23 20:17:07
阅读次数:
90
Long story short, shashlik is Miroslav's favorite food. Shashlik is prepared on several skewers simultaneously. There are two states for each skewer: ...
分类:
其他好文 时间:
2020-02-23 17:59:52
阅读次数:
59
1009 Product of Polynomials 题目原题 [TOC] This time, you are supposed to find A × B where A and B are two polynomials. Input Specification: Each input fi ...
分类:
其他好文 时间:
2020-02-21 18:29:34
阅读次数:
61
unit two 词汇 infant,toddler 阶段 difficult stage 可以换成 difficult period period 只指一段时间 区间的意思,stage则为发展历程的某一个阶段 childhood parenthood throw a tantrum 发脾气 愤怒从 ...
分类:
其他好文 时间:
2020-02-20 13:39:21
阅读次数:
121