<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tomotaka-ito</author_name>
  <author_url>https://blog.hatena.ne.jp/tomotaka-ito/</author_url>
  <blog_title>tomotaka-itoの日記</blog_title>
  <blog_url>https://tomotaka-ito.hatenadiary.org/</blog_url>
  <categories>
    <anon>ProjectEuler</anon>
  </categories>
  <description>馬鹿正直に3重ループでやるとめちゃくちゃ時間がかかる。 ちなみにこれを実行するとa,bが入れ替わった2パターンが出力される。 問題文には&quot;唯一の組み合わせ&quot;とあったので焦った。 (1..1000).each do |a| (1..1000).each do |b| if (1000-a-b)*(1000-a-b) == a*a+b*b then puts &quot;a=#{a}, b=#{b}, c=#{1000-a-b}&quot; end end end Problem: http://odz.sakura.ne.jp/projecteuler/index.php?Problem%209</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftomotaka-ito.hatenadiary.org%2Fentry%2F20080428%2F1209369576&quot; title=&quot;Problem 9 (written in Ruby) - tomotaka-itoの日記&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-04-28 16:59:36</published>
  <title>Problem 9 (written in Ruby)</title>
  <type>rich</type>
  <url>https://tomotaka-ito.hatenadiary.org/entry/20080428/1209369576</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
