Problem 8 (Project Euler) [和訳])
Find the greatest product of five consecutive digits in the 1000-digit number.以下略
Find the greatest product of five consecutive digits in the 1000-digit number.
以下略
なんかどうやっても大差はないようで、解説のPDF文書もありません。
課題の文字列を"split(//)"で配列にしてから、"to_i"で計算しただけでした。あまりおもしろくないです。
▲このページのトップへ