首页 > 编程语言 > 详细

PYTHON--欧拉习题一

时间:2016-04-26 22:23:38      阅读:245      评论:0      收藏:0      [点我收藏+]

练习题来源:

https://projecteuler.net/archives

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.


问题1:

在10(不包括10)以内的自然数中,能够被3或5整除的数字有3、5、6、9,他们的和是23.

请找出1000以内(不包括1000),能被3或者5整除的自然数的和。




本文出自 “三十男人学运维” 博客,请务必保留此出处http://loyfee.blog.51cto.com/754862/1767937

PYTHON--欧拉习题一

原文:http://loyfee.blog.51cto.com/754862/1767937

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!