A. Two Rabbits "原题" Problem Restatement 两个兔子以恒定速度相向而行,求相遇时间?若无法在整时间相遇,输出$ 1$ Solution 相遇问题,距离除以总速度为时间,看时间是否为整数即可。 Code ...
分类:
其他好文 时间:
2020-02-25 09:37:51
阅读次数:
43
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
Description Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. For example, two is written as II in Roman numeral, jus ...
分类:
其他好文 时间:
2020-02-20 09:28:12
阅读次数:
79
In a given 2D binary array , there are two islands. (An island is a 4 directionally connected group of s not connected to any other 1s.) Now, we may c ...
分类:
其他好文 时间:
2020-02-19 23:40:26
阅读次数:
85
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 = "abcdef". If we think of concate ...
分类:
编程语言 时间:
2020-02-18 16:33:41
阅读次数:
88
two pointers通向扫描法。 #include<iostream> #include<algorithm> using namespace std; typedef long long LL; LL a[100010] = {0}; int main() { int n,p,max = -1 ...
分类:
其他好文 时间:
2020-02-18 13:04:59
阅读次数:
49
Polycarpus has a ribbon, its length is n. He wants to cut the ribbon in a way that fulfils the following two conditions: After the cutting each ribbon ...
分类:
其他好文 时间:
2020-02-18 13:04:42
阅读次数:
81