2010-10-20から1日間の記事一覧
http://projecteuler.net/index.php?section=problems&id=20 n! means n (n 1) ... 3 2 1 Find the sum of the digits in the number 100! 100の階乗の各桁の合計。非常にてきとう。 import operator import datetime def sum_of_digits(n): result = 0 whil…
http://projecteuler.net/index.php?section=problems&id=20 n! means n (n 1) ... 3 2 1 Find the sum of the digits in the number 100! 100の階乗の各桁の合計。非常にてきとう。 import operator import datetime def sum_of_digits(n): result = 0 whil…