{"type":"rich","blog_title":"\u4ed6\u4eba\u306e\u8133\u5185","categories":["programming"],"image_url":null,"version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa-n-other.hatenablog.com%2Fentry%2F20070821%2F1187714499\" title=\"\u30c0\u30a4\u30b9\u3067\u7d44\u5206\u3051\u30fb\u89e3\u7b54\u4f8b - \u4ed6\u4eba\u306e\u8133\u5185\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"d:id:Nabetani:20070820#p1 \u3092\u89e3\u304f\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002 #!/usr/bin/ruby require 'mathn' # for gcd class Groups < Hash def initialize super(0) self[[0, 0, 0, 0, 0, 0]] = 1 @members=0 end def iterate tmp = self.dup self.clear tmp.each{|groups, frequency| (0..5).each{|i| x = groups.dup x[i] += 1 x.sort! self[x] +=\u2026","blog_url":"https://a-n-other.hatenablog.com/","width":"100%","height":"190","author_name":"another","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/another/","title":"\u30c0\u30a4\u30b9\u3067\u7d44\u5206\u3051\u30fb\u89e3\u7b54\u4f8b","published":"2007-08-21 01:41:39","url":"https://a-n-other.hatenablog.com/entry/20070821/1187714499"}