{"blog_url":"https://inamori.hateblo.jp/","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/inamori/","categories":["\u6570\u5b66","Python"],"width":"100%","image_url":null,"type":"rich","blog_title":"inamori\u2019s diary","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20091122%2Fp1\" title=\"Project Euler 265\uff082\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>","published":"2009-11-22 00:00:01","description":"\u6700\u521dPython\u306710\u5206\u4ee5\u4e0a\u304b\u304b\u3063\u3066\u3044\u305f\u306e\u3067\u3001\u9ad8\u901f\u5316\u3092\u8003\u3048\u3066\u307f\u305f\u3002 \u5217\u6319\u3059\u308b\u5019\u88dc\u306e\u6570\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u6761\u4ef6\u304c\u3042\u308b\u3002 1. 000001\u3067\u59cb\u307e\u308b\u3002 2. 1\u3067\u7d42\u308f\u308b\u3002 3. 0\u30681\u306f\u540c\u6570\u3001\u3059\u306a\u308f\u306116\u500b\u305a\u3064\u3042\u308b\u30021\u30682\u3067\u3053\u3046\u306a\u308b\u3002 N = 5 M = 2 ** N L = 2 ** (M - N) def gen_number(): for n in xrange(L / 2 + 1, L, 2): yield n\u307e\u305f3\u306e\u6761\u4ef6\u3067\u3001 def gen_number_core(k, l): if l == 0: yield 0 elif l for n in gen_number_core(k - 1, l\u2026","provider_name":"Hatena Blog","title":"Project Euler 265\uff082\uff09","height":"190","url":"https://inamori.hateblo.jp/entry/20091122/p1","version":"1.0","author_name":"inamori"}