{"author_url":"https://blog.hatena.ne.jp/jeneshicc/","blog_url":"https://jeneshicc.hatenadiary.org/","categories":["Project Euler","Haskell"],"published":"2008-12-15 21:47:06","height":"190","type":"rich","blog_title":"\u843d\u66f8\u304d\u3001\u6642\u3005\u843d\u5b66","provider_url":"https://hatena.blog","width":"100%","title":"Problem 150","version":"1.0","url":"https://jeneshicc.hatenadiary.org/entry/20081215/1229345226","description":"http://projecteuler.net/index.php?section=problems&id=150 \u4e09\u89d2\u5f62\u306e\u9ad8\u3055\u3092n\u3068\u3059\u308b\u3068O(n^3)\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3002 \u5225\u306eO(n^3)\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3082\u5b9f\u88c5\u3057\u305f\u304c\u3001\u305d\u3061\u3089\u3088\u308a20\u500d\u3050\u3089\u3044\u901f\u3044\u3002 \u3053\u3061\u3089\u306e\u307b\u3046\u304c\u3001\u9818\u57df\u8a08\u7b97\u91cf\u306b\u95a2\u3057\u3066\u60aa\u3044\u306e\u3060\u304c(r\u304c\u5fc5\u8981)\u3001\u306a\u305c\u304b\u901f\u3044\u3002 import Data.List import Data.Array.IArray height = 1000 triangle _ [] = [] triangle n xs = let (y,zs) = splitAt n xs in y:triangle (n+1) zs s \u2026","image_url":null,"author_name":"jeneshicc","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjeneshicc.hatenadiary.org%2Fentry%2F20081215%2F1229345226\" title=\"Problem 150 - \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>"}