2009-01-23から1日間の記事一覧

Rubyで英数字を作って文字数を数える 〜Rubyでオイラープロジェクトを解こう!Problem17

Problem 17 - Project Eulerより If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total. If all the numbers from 1 to 1000 (one thousand) inclusive were writte…