{"width":"100%","author_url":"https://blog.hatena.ne.jp/jeneshicc/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjeneshicc.hatenadiary.org%2Fentry%2F20081128%2F1227888587\" title=\"Problem 120 - \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>","image_url":null,"title":"Problem 120","blog_url":"https://jeneshicc.hatenadiary.org/","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","published":"2008-11-28 01:09:47","description":"http://projecteuler.net/index.php?section=problems&id=120\u7c21\u5358\u306a\u8a08\u7b97\uff08\u3068\u3059\u308b\u304c\u3001\u610f\u5916\u3068\u6642\u9593\u304c\u304b\u304b\u3063\u305f\u306e\u306f\u5185\u7dd2\u3060\uff09\u3067 a:even -> a*(a-2) a:odd -> a*(a-1) \u304c\u5206\u304b\u308b\u3002\u3053\u308c\u304c\u5206\u304b\u308c\u3070\u3001\u5f8c\u306f\u7c21\u5358\u3002 rMax a | even a = a*(a-2) | odd a = a*(a-1) main = print. sum. map rMax $ [3..1000] \u624b\u8a08\u7b97\u3067\u3082\u3067\u304d\u308b\u306f\u305a\u3001\u9762\u5012\u3060\u304b\u3089\u3084\u3089\u306a\u3044\u3051\u3069\u3002","type":"rich","version":"1.0","blog_title":"\u843d\u66f8\u304d\u3001\u6642\u3005\u843d\u5b66","url":"https://jeneshicc.hatenadiary.org/entry/20081128/1227888587","height":"190","author_name":"jeneshicc","categories":["Project Euler","Haskell"]}