A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacent circles should be a prime.
Note: the number of first circle should always be 1.
Input
n (0 < n < 2...
分类:
其他好文 时间:
2015-02-12 22:56:33
阅读次数:
437
Problem 1:If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.Find the su...
分类:
其他好文 时间:
2015-02-11 16:19:01
阅读次数:
204
时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueBehind the scenes in the computer's memory, color is always talked about as a series of 24 b...
分类:
其他好文 时间:
2015-02-09 09:17:49
阅读次数:
123
The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The f...
分类:
编程语言 时间:
2015-02-05 20:02:02
阅读次数:
181
Sumdiv
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 15033
Accepted: 3706
Description
Consider two natural numbers A and B. Let S be the sum of all nat...
分类:
其他好文 时间:
2015-02-02 23:21:21
阅读次数:
307
原文:http://www.codeproject.com/Articles/901/Introduction-to-COM-Part-II-Behind-the-Scenes-of-a
本文为刚刚接触COM的程序员提供编程指南,解释COM服务器内幕以及如何用C++编写自己的接口(前一篇博文主要是COM编程的入门:COM编程入门不得不看的文章
:第一部分 什么是COM,如...
分类:
其他好文 时间:
2015-01-30 09:09:31
阅读次数:
402
https://www.youtube.com/watch?v=0SCjhI86grUhttp://en.wikipedia.org/wiki/Natural_selection物种进化原因可能是多样化的,既有中性基因突变,也有环境选择。自然选择理论认为所有生物可能来自初始的一个鼻祖,通过环境隔离变...
分类:
其他好文 时间:
2015-01-29 12:38:56
阅读次数:
830
Sum square difference
Problem 6
The sum of the squares of the first ten natural numbers is,
12 + 22 + ... + 102 = 385
The square of the sum of the first ten natural numbers is,
(1 + 2 + ....
分类:
编程语言 时间:
2015-01-27 09:34:10
阅读次数:
170
Special Pythagorean triplet
Problem 9
A Pythagorean triplet is a set of three natural numbers, a b c,
for which,
a2 + b2 = c2
For example, 32 + 42 = 9 + 16 = 25 = 52.
There exists exact...
分类:
编程语言 时间:
2015-01-27 09:32:08
阅读次数:
181
Sumdiv
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 14953
Accepted: 3680
Description
Consider two natural numbers A and B. Let S be the sum of all natural...
分类:
其他好文 时间:
2015-01-23 09:34:34
阅读次数:
236