{"blog_title":"inamori\u2019s diary","blog_url":"https://inamori.hateblo.jp/","title":"Project Euler 40","description":"\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30aa\u30a4\u30e9\u30fc http://projecteuler.net/index.php \u9806\u756a\u306b\u89e3\u3044\u3066\u3044\u304f\u3053\u3068\u306f\u5909\u308f\u3089\u306a\u3044\u304c\u3001\u3053\u308c\u304b\u3089\u306f\u3001\u30d4\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3066\u8f09\u305b\u308b\u3053\u3068\u306b\u3059\u308b\u3002 Q40. 1\u304b\u3089\u9806\u306b\u9806\u306b\u4e26\u3079\u3066\u4f5c\u3063\u305f\u5c0f\u6570\u306e\u5c0f\u6570\u7b2cn\u4f4d\u3092dn\u3068\u66f8\u3044\u305f\u3068\u304d\u306b\u3001d1 * d10 * \u2026 * d1000000 \u5404\u6841\u3092\u9806\u306b\u6570\u5b57\u3092\u51fa\u3059\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u3092\u4f5c\u308c\u3070\u3001 from itertools import count from operator import muldef gen(): for n in count(1): for s in str(n): yield sdef get_item(n): d = 0 g\u2026","type":"rich","author_name":"inamori","width":"100%","author_url":"https://blog.hatena.ne.jp/inamori/","provider_url":"https://hatena.blog","version":"1.0","provider_name":"Hatena Blog","url":"https://inamori.hateblo.jp/entry/20090426/p1","categories":["\u6570\u5b66","Python"],"image_url":null,"height":"190","published":"2009-04-26 00:00:00","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20090426%2Fp1\" title=\"Project Euler 40 - 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>"}