A sequence of N positive integers (10 < N < 100 000), each of them less than or equal 10000, and a positive integer S (S < 100 000 000) are given. Write a program to find the minimal length of the sub...
分类:
其他好文 时间:
2014-08-23 11:22:40
阅读次数:
198
There are some specialists pointing out the mechanical tools together with the positive aspects of energy-saving and environmental protection is just ...
分类:
移动开发 时间:
2014-08-23 11:12:20
阅读次数:
280
Description
``Pinary" number is a positive number using only two digits ``0" and ``1" with usual rule that it must not begin with a 0, and the additional rule that two successive digits must not be...
分类:
其他好文 时间:
2014-08-22 21:16:19
阅读次数:
237
Description
Triangles are polygons with three sides and strictly positive area. Lattice triangles are the triangles all whose vertexes have integer coordinates. In this problem you have to find the...
分类:
其他好文 时间:
2014-08-21 22:56:15
阅读次数:
443
Description
Given n, a positive integer, how many positive integers less than n are relatively prime to n? Two integers a and b are relatively prime if there are no integers x > 1, y > 0, z > 0 such ...
分类:
其他好文 时间:
2014-08-20 22:41:13
阅读次数:
264
Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescription The least common multiple (LCM) of a set of positive int....
分类:
其他好文 时间:
2014-08-20 11:56:43
阅读次数:
166
LCM (Least Common Multiple) of a set of integers is defined as the minimum number, which is a multiple of all integers of that set. It is interesting to note that any positive integer can be expressed...
分类:
其他好文 时间:
2014-08-18 23:38:13
阅读次数:
275
Digital RootsTime Limit: 1000ms Memory limit: 65536K有疑问?点这里^_^题目描述The digital root of a positive integer is found by summing the digits of the integer...
分类:
其他好文 时间:
2014-08-18 22:00:43
阅读次数:
228
F - 最大子矩形Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64uSubmitStatusDescriptionGiven a two-dimensional array of positive and nega...
分类:
其他好文 时间:
2014-08-18 21:58:12
阅读次数:
312
A pair of numbers has a unique LCM but a single number can be the
LCM of more than one possible pairs. Forexample 12 is the
LCM of (1, 12), (2, 12),
(3,4) etc. For a given positive integer N, the ...
分类:
其他好文 时间:
2014-08-18 16:25:24
阅读次数:
240