{"image_url":null,"published":"2008-11-28 21:26:26","width":"100%","height":"190","blog_url":"https://jeneshicc.hatenadiary.org/","provider_url":"https://hatena.blog","blog_title":"\u843d\u66f8\u304d\u3001\u6642\u3005\u843d\u5b66","author_url":"https://blog.hatena.ne.jp/jeneshicc/","author_name":"jeneshicc","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjeneshicc.hatenadiary.org%2Fentry%2F20081128%2F1227875186\" title=\"Problem 117 - \u843d\u66f8\u304d\u3001\u6642\u3005\u843d\u5b66\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","provider_name":"Hatena Blog","description":"http://projecteuler.net/index.php?section=problems&id=117 \u305d\u306e\u307e\u307e\uff24\uff30\u3002 import Data.Array.IArray measure n = mArr!n where mArr = listArray (0,n). map m $[0..n]::Array Int Integer m 0 = 1 m x = sum.map m'.zipWith (-) (repeat x) $ [1..4] m' x | x < 0 = 0 | x >= 0 = mArr!x main = print.measure$ 50 \u3068\u3044\u3046\u304b\u3001\u9ad8\u30054\u3064\u524d\u2026","title":"Problem 117","url":"https://jeneshicc.hatenadiary.org/entry/20081128/1227875186","categories":["Project Euler","Haskell"]}