大菠萝

大菠萝-ama+sor

寻找能被1-20整除的最小数

Project Euler 第5题

2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.

What is the smallest number that is evenly divisible by all of the numbers from 1 to 20?

我使用的方法为为O(n2),附带的pdf里的算法更快,我有点没看明白。

相关下载:


相关阅读

tags: ,,

Posted by benben on November 20,2008 2:49 PM in 程序设计 ||Comment(0)
0个脚印

留言




早起的鸟儿有虫子吃


e.g. "大菠萝"