码迷,mamicode.com
首页 >  
搜索关键字:smallest difference    ( 1670个结果
欧拉计划(python) problem 5
Smallest multiple Problem 5 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smallest positive number that is evenly di...
分类:编程语言   时间:2015-01-26 22:49:54    阅读次数:289
YT14-HDU-求多组数的最小公倍数
Problem Description The least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbers in the set. For example, the LCM of 5, 7 and...
分类:其他好文   时间:2015-01-26 17:21:09    阅读次数:137
UVA How Big Is It? (DFS+回溯)
How Big Is It?  Ian's going to California, and he has to pack his things, including his collection of circles. Given a set of circles, your program must find the smallest rectangular box in...
分类:其他好文   时间:2015-01-26 17:05:21    阅读次数:265
Leetcode: Maximum Gap
Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/space.Return 0 ...
分类:其他好文   时间:2015-01-26 13:26:51    阅读次数:195
poj1094 拓扑排序
http://poj.org/problem?id=1094 Description An ascending sorted sequence of distinct values is one in which some form of a less-than operator is used to order the elements from smallest to larges...
分类:编程语言   时间:2015-01-25 19:39:31    阅读次数:185
CDZSC_2015寒假新人(2)——数学 - A
DescriptionThe least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbers in the...
分类:其他好文   时间:2015-01-24 21:20:31    阅读次数:219
【leetcode】Maximum Gap
Maximum GapGiven an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/spac...
分类:其他好文   时间:2015-01-24 15:44:53    阅读次数:201
计算机程序的构造和解释 1.21 寻找素数因子
寻找素数因子要求用书中的smallest-divisor过程找出199, 1999, 19999的最小因子。Scheme Code:主要流程:定义寻找素数的过程如果2的平方即4,大于测试值,那么它肯定是素数如果n能和2整除,那么不是素数,最小因子是2如果不是,回到过程find-div,再试试能不能与...
分类:其他好文   时间:2015-01-23 19:56:37    阅读次数:214
SICP 计算机程序的构造和解释 1.21 寻找因子 Scheme、C++实现
寻找素数因子要求用书中的smallest-divisor过程找出199, 1999, 19999的最小因子。Scheme Code:主要流程:定义寻找素数的过程如果2的平方即4,大于测试值,那么它肯定是素数如果n能和2整除,那么不是素数,最小因子是2如果不是,回到过程find-div,再试试能不能与...
分类:编程语言   时间:2015-01-23 17:50:51    阅读次数:228
LeetCode - Maximum Gap
Maximum Gap2015.1.23 15:00Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in l...
分类:其他好文   时间:2015-01-23 16:10:03    阅读次数:111
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!