{"version":"1.0","provider_name":"Hatena Blog","type":"rich","categories":["Scala"],"blog_title":"inamori\u2019s diary","provider_url":"https://hatena.blog","blog_url":"https://inamori.hateblo.jp/","author_name":"inamori","height":"190","width":"100%","title":"Scala\u3067Project Euler\uff0856\uff09","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20110727%2Fp1\" title=\"Scala\u3067Project Euler\uff0856\uff09 - inamori\u2019s diary\" 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,"description":"Problem 31\u3055\u3089\u306b\u901f\u3044\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002 Pk(x) = 1 / (1 - xk) \u306a\u306e\u3067\u3001 (1 - x)(1 - x2)...(1 - x100)(1 - x200) \u3092\u8a08\u7b97\u3057\u3066\u9006\u6570\u3092\u53d6\u308b\u3060\u3051\u3067\u3059\u3002\u672c\u5f53\u306f\u8a3c\u660e\u304c\u5fc5\u8981\u306a\u306e\u3067\u3059\u304c\u624b\u629c\u304d\u3057\u307e\u3059\u3002 N = 5000\u3067\u524d\u56de\u306e\u65b9\u6cd5\u3088\u308a2\u6841\u901f\u304b\u3063\u305f\u3067\u3059\u3002O(N2)\u304cO(N)\u3067\u3059\u304b\u3089\u306d\u3002","url":"https://inamori.hateblo.jp/entry/20110727/p1","published":"2011-07-27 00:00:00","author_url":"https://blog.hatena.ne.jp/inamori/"}