{"image_url":null,"version":"1.0","categories":["PE","\u6570\u5b66","\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/inamori/","blog_url":"https://inamori.hateblo.jp/","description":"Problem 53 \uff08\u524d\u7565\uff091 \u2264 n \u2264 100 \u3067nCr\u306e\u5024\u304c100\u4e07\u3092\u8d85\u3048\u308b\u3082\u306e\u306f\u533a\u5225\u305b\u305a\u306b\u3044\u304f\u3064\u3042\u308b\u304b\u3002 http://projecteuler.net/index.php?section=problems&id=53 nCr\u306e\u8a08\u7b97\u306f\u3001 nCr = nCr-1 * (n - r + 1) / r \u3068\u3044\u3046\u6f38\u5316\u5f0f\u3067\u8a08\u7b97\u3057\u307e\u3059\u3002 from itertools import imapdef C(n, r): return 1 if r == 0 else C(n, r - 1) * (n - r + 1) / rdef gen_combination(): for n in xrange(N\u2026","type":"rich","width":"100%","provider_url":"https://hatena.blog","blog_title":"inamori\u2019s diary","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20100124%2Fp1\" title=\"Project Euler 53 - 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>","url":"https://inamori.hateblo.jp/entry/20100124/p1","title":"Project Euler 53","published":"2010-01-24 00:00:00","author_name":"inamori","height":"190"}