The greatest common divisor GCD(a,b) of two positive integers a and b,sometimes written (a,b),is the largest divisor common to a and b,For example,(1, ...
分类:
其他好文 时间:
2019-02-13 22:59:41
阅读次数:
384
Given is a set of integers and then a sequence of queries. A query gives you a number and asks to find a sum of two distinct numbers from the set, whi ...
分类:
其他好文 时间:
2019-02-13 22:54:34
阅读次数:
199
"原题链接" 题目描述 :给定5个集合,从每个集合中选一个数,使得5个数的和为0. 输入格式 :第一行:一个整数t表示数据组数。 接下来t组数据,每组数据第一行一个整数表示集合的大小。 接下来5行,每行n个数表示集合中的i元素。 输出格式 :对于每组数据,输出Yes或No表示是否可以使数的和为0. ...
分类:
其他好文 时间:
2019-02-13 22:53:01
阅读次数:
219
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex ...
分类:
其他好文 时间:
2019-02-13 22:30:45
阅读次数:
206
Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2. You have the following 3 operations permitt ...
分类:
其他好文 时间:
2019-02-13 21:05:49
阅读次数:
171
算法描述: Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2. You have the following 3 operations p ...
分类:
其他好文 时间:
2019-02-13 20:53:11
阅读次数:
165
This time, you are supposed to find A×B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occu ...
分类:
其他好文 时间:
2019-02-13 18:09:37
阅读次数:
195
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, just two one's ...
分类:
其他好文 时间:
2019-02-12 21:40:29
阅读次数:
157
https://pintia.cn/problem-sets/994805342720868352/problems/994805466364755968 Given an increasing sequence S of N integers, the median is the number a ...
分类:
其他好文 时间:
2019-02-12 21:26:04
阅读次数:
186
Given two binary strings, return their sum (also a binary string). The input strings are both non-empty and contains only characters 1 or 0. Example 1 ...
分类:
其他好文 时间:
2019-02-12 21:25:30
阅读次数:
165