2008-02-24から1日間の記事一覧
http://projecteuler.net/index.php頭が悪いから簡単なやつだけ解いてみる。1問目は解いたので、次は20問目。 n! means n × (n - 1) × ... × 3 × 2 × 1 Find the sum of the digits in the number 100! 階乗はやっぱり再帰を使うのがかっこいいよね。 import…
http://projecteuler.net/index.php頭が悪いから簡単なやつだけ解いてみる。1問目は解いたので、次は20問目。 n! means n × (n - 1) × ... × 3 × 2 × 1 Find the sum of the digits in the number 100! 階乗はやっぱり再帰を使うのがかっこいいよね。 import…