{"categories":["\u6570\u5b66","Python"],"published":"2009-04-28 00:00:00","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20090428%2Fp1\" title=\"Project Euler 48 - 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>","type":"rich","image_url":null,"width":"100%","url":"https://inamori.hateblo.jp/entry/20090428/p1","title":"Project Euler 48","description":"\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30aa\u30a4\u30e9\u30fc http://projecteuler.net/index.php Q48. 11 + 22 + ... + 10001000 \u3053\u3046\u3059\u308c\u3070\u7b54\u3048\u306f\u51fa\u308b\u3002 N = 1000 print str(sum(map(lambda x: x ** x, range(1, N + 1))))[-10:]\u3057\u304b\u3057\u3001\u591a\u500d\u9577\u6574\u6570\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u304c\u6c17\u306b\u5165\u3089\u306a\u3044\u3002 \u4e0b10\u6841\u3057\u304b\u4f7f\u308f\u306a\u3044\u306e\u3067\u30014\u6841\u3067\u533a\u5207\u3063\u3066\u8981\u7d20\u6700\u59273\u3064\u306e\u30ea\u30b9\u30c8\u306b\u3057\u3066\u8a08\u7b97\u3059\u308c\u3070\u30014\u30d0\u30a4\u30c8\u306e\u6574\u6570\u306e\u7bc4\u56f2\u5185\u3067\u8a08\u7b97\u3067\u304d\u308b\u3002\u52a0\u7b97\u30fb\u4e57\u7b97\u3060\u3051\u306a\u306e\u3067\u7c21\u5358\u3002\u3057\u304b\u3057\u3001\u304b\u3048\u3063\u3066\u9045\u304f\u306a\u3063\u305f\u3002","author_name":"inamori","version":"1.0","blog_url":"https://inamori.hateblo.jp/","blog_title":"inamori\u2019s diary","height":"190","author_url":"https://blog.hatena.ne.jp/inamori/","provider_url":"https://hatena.blog","provider_name":"Hatena Blog"}