Longest Collatz sequence
Problem 14
The following iterative sequence is defined for the set of positive integers:
n → n/2 (n is even)
n → 3n + 1 (n is odd)
Using the rule above and starting...
分类:
编程语言 时间:
2015-01-27 13:33:21
阅读次数:
173
水题Description The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which f...
分类:
其他好文 时间:
2015-01-27 12:59:41
阅读次数:
109
头疼,做道水题。。DescriptionGiven a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greate...
分类:
其他好文 时间:
2015-01-27 00:12:17
阅读次数:
242
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 22:56:41
阅读次数:
202
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
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
http://www.gnu.org/software/libc/manual/html_node/Infinity-and-NaN.html20.5.2 Infinity and NaN IEEE754 floating point numbers can represent positive ....
分类:
其他好文 时间:
2015-01-25 20:55:07
阅读次数:
240
SubsequenceTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 9050Accepted: 3604DescriptionA sequence of N positive integers (10 #include #inclu...
分类:
编程语言 时间:
2015-01-25 19:25:00
阅读次数:
174
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
题目链接:点击打开链接
Description
Give a positive number, count the sum of the distinct subsequence of it, moreover, any subsequence should not contain leading zeroes except it is zero.
...
分类:
其他好文 时间:
2015-01-24 20:08:06
阅读次数:
240