<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>n9d</author_name>
  <author_url>https://blog.hatena.ne.jp/n9d/</author_url>
  <blog_title>計算機と戯れる日々</blog_title>
  <blog_url>https://n9d.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>この実効速度に凹んだ。 15って分かってやってるからかな？ アルゴリズムもかなり練ってるからなぁ。 アルゴリズムを考える時間と実行する時間を考えるとより表現力のある言語の方がいいのかもしれない。 いやーやっぱりマシン速くなったなぁ。rubyは1.8.7以上でないとpermutationが使えない。 x=15 (1..9).to_a.permutation(3).each{|a| if x==a.inject(0){|i,v|v+=i} (1..9).to_a.reject{|i|a.include?(i)}.permutation(3).each{|b| if x==b.inject(0){|…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fn9d.hatenadiary.org%2Fentry%2F20081206%2F1228546036&quot; title=&quot;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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-12-06 15:47:16</published>
  <title>rubyで魔方陣</title>
  <type>rich</type>
  <url>https://n9d.hatenadiary.org/entry/20081206/1228546036</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
