{"height":"190","description":"\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30aa\u30a4\u30e9\u30fc http://projecteuler.net/index.php?section=problems&id=254 \u554f\u984c\u306e\u610f\u5473\u306f\u3059\u3050\u306b\u308f\u304b\u308b\u304c\u3001\u4eca\u306e\u3068\u3053\u308d\u624b\u304c\u304b\u308a\u304c\u306a\u3044\u300220\u307e\u3067\u306a\u3089\u7d20\u76f4\u306b\u66f8\u3051\u3070\u3088\u3044\u3002 from itertools import imap, count from math import factorialdef gen_digit(n): while n: yield n % 10 n /= 10def f(n): return sum(imap(factorial, gen_digit(n)))def sum_digits(n): return sum(\u2026","type":"rich","width":"100%","provider_name":"Hatena Blog","categories":["\u6570\u5b66","Python"],"blog_url":"https://inamori.hateblo.jp/","author_name":"inamori","provider_url":"https://hatena.blog","title":"Project Euler 254","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20090905%2Fp1\" title=\"Project Euler 254 - 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>","author_url":"https://blog.hatena.ne.jp/inamori/","published":"2009-09-05 00:00:00","image_url":null,"blog_title":"inamori\u2019s diary","url":"https://inamori.hateblo.jp/entry/20090905/p1"}