'프로젝트 오일러'에 해당되는 글 18건

  1. 2018.11.04 프로젝트 오일러 문제 2
  2. 2018.11.04 프로젝트 오일러 문제 1
2018. 11. 4. 20:03
728x90

Even Fibonacci numbers

Problem 2

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-valued terms.


400만까지의 범위에서 짝수인 피보나치 수의 합을 구하기



728x90

'공부 > 문제풀기' 카테고리의 다른 글

프로젝트 오일러 문제 6  (0) 2018.11.11
프로젝트 오일러 문제 5  (0) 2018.11.11
프로젝트 오일러 문제 4  (0) 2018.11.07
프로젝트 오일러 문제 3  (0) 2018.11.04
프로젝트 오일러 문제 1  (0) 2018.11.04
Posted by 아야카
2018. 11. 4. 18:57
728x90

Multiples of 3 and 5

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 sum of all the multiples of 3 or 5 below 1000.

below 1000이므로 1000 미만까지의 수에서 3 or 5의 배수인 수의 합을 구하는 문제



728x90

'공부 > 문제풀기' 카테고리의 다른 글

프로젝트 오일러 문제 6  (0) 2018.11.11
프로젝트 오일러 문제 5  (0) 2018.11.11
프로젝트 오일러 문제 4  (0) 2018.11.07
프로젝트 오일러 문제 3  (0) 2018.11.04
프로젝트 오일러 문제 2  (0) 2018.11.04
Posted by 아야카