{"published":"2009-04-06 00:00:00","description":"m\u70b9\u3067\u8fba\u306e\u6570\u304cn\u306e\u3068\u304d\u306e\u3059\u3079\u3066\u306e\u5834\u5408\u306b\u3064\u3044\u3066\u3001\u9023\u7d50\u304b\u3069\u3046\u304b\u5224\u5b9a\u3059\u308b\u3002 \u307e\u305a\u3001m\u70b9\u306a\u3089\u53ef\u80fd\u306a\u8fba\u306e\u6570\u306f\u3001m\u70b9\u304b\u30892\u70b9\u9078\u3076\u304b\u3089\u3001m(m-1)/2\u3001\u305d\u306e\u3046\u3061n\u8fba\u3092\u9078\u3076\u304b\u3089\u3001m(m-1)/2Cn\u306e\u5834\u5408\u304c\u3042\u308b\u3002\u305d\u308c\u3092\u3059\u3079\u3066\u5217\u6319\u3059\u308b\u3002\u6b21\u306e\u3088\u3046\u306a\u7d44\u5408\u305b\u3092\u5217\u6319\u3059\u308b\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u3092\u4f5c\u3063\u305f\u3002 def combination(n, m): c = range(m) yield c while True: if c[m-1] != n - 1: c[m-1] += 1 yield c[:] else: i = m - 2 while True: if c[i] c[i] += 1 for j in range(i + 1\u2026","provider_url":"https://hatena.blog","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/i/inamori/20090406/20090406160314.png","version":"1.0","categories":["\u30b0\u30e9\u30d5","\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"width":"100%","provider_name":"Hatena Blog","type":"rich","url":"https://inamori.hateblo.jp/entry/20090406/p1","blog_title":"inamori\u2019s diary","title":"\u30b0\u30e9\u30d5\u304c\u9023\u7d50\u3067\u3042\u308b\u78ba\u7387\uff084\uff09","author_name":"inamori","author_url":"https://blog.hatena.ne.jp/inamori/","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20090406%2Fp1\" title=\"\u30b0\u30e9\u30d5\u304c\u9023\u7d50\u3067\u3042\u308b\u78ba\u7387\uff084\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>","blog_url":"https://inamori.hateblo.jp/"}