{"blog_url":"https://inamori.hateblo.jp/","author_name":"inamori","provider_url":"https://hatena.blog","width":"100%","height":"190","type":"rich","published":"2011-05-20 00:00:00","blog_title":"inamori\u2019s diary","url":"https://inamori.hateblo.jp/entry/20110520/p1","title":"Scala\u3067Project Euler\uff0811\uff09","author_url":"https://blog.hatena.ne.jp/inamori/","description":"Problem 4 \u6642\u9593\u8a08\u6e2c \u3053\u306e\u554f\u984c\u30672\u901a\u308a\u306e\u89e3\u6cd5\u3092\u793a\u3057\u307e\u3057\u305f\u304c\u3001\u3069\u3061\u3089\u304c\u901f\u3044\u3067\u3057\u3087\u3046\u3002\u6642\u9593\u8a08\u6e2c\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002 val t0 = System.currentTimeMillis val N = 3 val M = pow(10, N) println (palindrome(N).filter(is_product).head) println ((System.currentTimeMillis - t0) + \"ms\") \u5927\u304d\u306a\u6841\u6570\u307e\u3067\u8a08\u7b97\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u90e8\u5206\u306fInt\u3092Long\u306b\u4fee\u6b63\u3057\u307e\u3057\u305f\u3002 \u6841\u6570 \u56de\u6587\u6570\u2192\u7a4d \u7a4d\u2192\u56de\u6587\u6570 3 359 422 4 1750 422 5 143547\u2026","provider_name":"Hatena Blog","version":"1.0","categories":["Scala"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20110520%2Fp1\" title=\"Scala\u3067Project Euler\uff0811\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}