{"author_url":"https://blog.hatena.ne.jp/inamori/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20120204%2Fp1\" title=\"Scala\u3067Project Euler\uff08138\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>","blog_title":"inamori\u2019s diary","url":"https://inamori.hateblo.jp/entry/20120204/p1","provider_name":"Hatena Blog","description":"Problem 92\u6bcd\u95a2\u6570\u3092\u4f7f\u3046\u3068\u5727\u5012\u7684\u306b\u901f\u304f\u306a\u308a\u307e\u3059\u3002 1\u6841\u306e\u5834\u5408\u6bcd\u95a2\u6570\u3092\u6b21\u306e\u3088\u3046\u306b\u8868\u3057\u307e\u3059\u3002 P1(x) = 1 + x + x4 + x9 + ... + x81 \u3053\u308c\u306f\u3001\u5404\u6841\u306e\u5e73\u65b9\u548c\u304c0, 1, 4, 9, ..., 81\u306b\u306a\u308b\u5834\u5408\u304c\u4e00\u3064\u305a\u3064\u3042\u308a\u4ed6\u306f0\u3068\u3044\u3046\u3053\u3068\u3092\u610f\u5473\u3057\u3066\u3044\u307e\u3059\u30022\u6841\u306e\u5834\u5408\u306f\u3001 P2(x) = P1(x)2 = 1 + 2x + x2 + ... + x162 2x\u306f\u5e73\u65b9\u548c\u304c1\u306b\u306a\u308b\u6570\u304c01\u306810\u306e2\u3064\u3042\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002N\u6841\u306e\u5834\u5408\u306f\u30d0\u30a4\u30ca\u30ea\u6cd5\u3092\u4f7f\u3063\u3066\u3001 PN(x) = P1(x)N \u3092\u8a08\u7b97\u3057\u307e\u3059\u3002 107\u306710ms\u30011020\u306780ms\u300110100\u30673.4\u79d2\u3067\u3057\u305f\u3002","published":"2012-02-04 00:00:00","version":"1.0","author_name":"inamori","categories":["Scala"],"provider_url":"https://hatena.blog","height":"190","blog_url":"https://inamori.hateblo.jp/","title":"Scala\u3067Project Euler\uff08138\uff09","image_url":null,"width":"100%","type":"rich"}