2008-11-20から1日間の記事一覧

0から1000までに含まれる0をカウントする

0〜1000に含まれる0をカウントする - http://rubikitch.com/に移転しましたEmacs Lispで。 (with-temp-buffer (loop for i from 0 to 1000 do (insert (format "%d" i))) (count-matches "0" (point-min) (point-max))) ; => 193 (#o301, #xc1)