{"provider_url":"https://hatena.blog","height":"190","provider_name":"Hatena Blog","categories":["Erlang","30\u5206\u30d7\u30ed\u30b0\u30e9\u30e0"],"published":"2008-04-13 00:00:01","title":"Problem20","width":"100%","blog_url":"https://mzp.hatenadiary.org/","version":"1.0","description":"30\u5206\u30d7\u30ed\u30b0\u30e9\u30e0\u3001\u305d\u306e286\u3002Problem20 via Project Euler\u3002 n \u00d7 (n - 1) \u00d7 ... \u00d7 3 \u00d7 2 \u00d7 1 \u3092 n! \u3068\u8868\u3059\u3002 100! \u306e\u5404\u6841\u306e\u6570\u5b57\u306e\u5408\u8a08\u3092\u6c42\u3081\u3088\u3002 \u6841\u306e\u5206\u89e3\u3068\u3044\u3048\u3070\u3001unfold\u3002Erlang\u306e\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u306f\u7121\u3044\u306e\u3067\u3001Ruminations of a Programmer: Fun with unfold in Erlang\u3092\u53c2\u8003\u306b\u81ea\u5206\u3067\u4f5c\u3063\u305f\u3002 \u4f7f\u3044\u65b9 $ escript problem20.erl 100 648 \u30bd\u30fc\u30b9\u30b3\u30fc\u30c9 -module(problem20). -export([main/1]). unfold(Pred\u2026","url":"https://mzp.hatenadiary.org/entry/20080413/sum","image_url":null,"author_name":"mzp","type":"rich","author_url":"https://blog.hatena.ne.jp/mzp/","blog_title":"\u307f\u305a\u3074\u30fc\u65e5\u8a18","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20080413%2Fsum\" title=\"Problem20 - \u307f\u305a\u3074\u30fc\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}