{"version":"1.0","categories":["Ruby","30\u5206\u30d7\u30ed\u30b0\u30e9\u30e0"],"title":"Problem48","blog_title":"\u307f\u305a\u3074\u30fc\u65e5\u8a18","description":"30\u5206\u30d7\u30ed\u30b0\u30e9\u30e0\u3001\u305d\u306e322\u3002Problem48 - Project Euler\u3002 \u6b21\u306e\u5f0f\u306f\u300111 + 22 + 33 + ... + 1010 = 10405071317 \u3067\u3042\u308b\u3002 \u3067\u306f\u300111 + 22 + 33 + ... + 10001000 \u306e\u6700\u5f8c\u306e10\u6841\u3092\u6c42\u3081\u3088\u3002 \u6b63\u76f4\u306b\u3084\u3063\u305f\u3089\u3069\u3046\u306a\u308b\u3093\u3060\u308d\u3046\u3001\u3068Ruby\u3067\u30ef\u30f3\u30e9\u30a4\u30ca\u30fc\u3092\u66f8\u3044\u305f\u3089\u89e3\u3051\u3066\u3057\u307e\u3063\u305f\u3002\u307e\u3001\u3053\u308c\u3067\u3044\u3044\u304b\u3002 \u4f7f\u3044\u65b9 $ ruby -e \"puts (1..1000).map{|n|n**n}.inject{|x,y|x+y}.to_s[-10..-1]\" 9110846700 \u30bd\u30fc\u30b9\u30b3\u30fc\u30c9 puts (1..1000).map\u2026","url":"https://mzp.hatenadiary.org/entry/20080615/euler","provider_name":"Hatena Blog","type":"rich","author_url":"https://blog.hatena.ne.jp/mzp/","image_url":null,"published":"2008-06-15 00:00:00","blog_url":"https://mzp.hatenadiary.org/","author_name":"mzp","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20080615%2Feuler\" title=\"Problem48 - \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>","provider_url":"https://hatena.blog","width":"100%"}