文章列表
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:
1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-va ...
Swallows may have gone——也许燕子已经飞去
Swallows may have gone, but there is a time of return; willow trees mayhave died back, but there is a time of regreening; peach blossoms mayhave fallen, but they will bloom again. Now, you the wise, tell me, whyshould our days leave us, never to return? - If they had ...
- 2009-09-18 11:37
- 浏览 1037
- 评论(1)
Youth
---by Samuel Erman
Youth is not a time of life, it is a state of mind, it is not a matter of rosy cheeks, red lips, supple knees. It is a matter of the will, a quality of the imagination, a vigor of the emotions, it is the freshness of the deep spring of life.
Youth means a temperame ...
- 2009-09-18 11:29
- 浏览 785
- 评论(0)
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 sum of all the multiples of 3 or 5 below 1000.
public class Multiple {
/**
* @param args
*/
public static void main(String[] args) {
int sum = ...
- 2009-02-19 10:22
- 浏览 1189
- 评论(0)