<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>raydive</author_name>
  <author_url>https://blog.hatena.ne.jp/raydive/</author_url>
  <blog_title>日々の御伽噺</blog_title>
  <blog_url>https://raydive.hatenablog.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>タクシー数の4乗数バージョン - りつ缶 まあこんな感じで。 gistbe48edab1b249f27a6d7 考え方 ぱっと思いついたのは、しらみつぶしにパターン列挙しての結果が同じになるものを調べればいいなぁということで非常に安易な方法だったのだけど、 (1,1)から(300,300)の組をはじめに列挙 (1,2)と(2,1)は組としては同じものなのでペアをつくるときにソートしてuniq! group_byメソッドでを計算して、同じ値になるものをグループ化 1組しかないものは捨てて、残ったものが求めるもの とした。一応リンク先のコードの結果も同じものなので大丈夫なはず。 パーフェクトRub…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fraydive.hatenablog.jp%2Fentry%2F2015%2F01%2F03%2F223000&quot; title=&quot;タクシー数の4乗数をRubyで - 日々の御伽噺&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://ecx.images-amazon.com/images/I/51K0jUf+iEL.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-01-03 22:30:00</published>
  <title>タクシー数の4乗数をRubyで</title>
  <type>rich</type>
  <url>https://raydive.hatenablog.jp/entry/2015/01/03/223000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
