<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mjh</author_name>
  <author_url>https://blog.hatena.ne.jp/mjh/</author_url>
  <blog_title>mjh.日記＠渋谷 with TH55</blog_title>
  <blog_url>https://mjh.hatenadiary.org/</blog_url>
  <categories>
    <anon>devel</anon>
  </categories>
  <description>2年くらい前にさんざんはやったので、超今更なのだけど.... 1から100までの数をプリントするプログラムを書け。ただし3の倍数のときは数の代わりに「Fizz」と、5の倍数のときは「Buzz」とプリントし、3と5両方の倍数の場合には「FizzBuzz」とプリントすること。 私ならこんな感じかなぁ。(ruby) 1.upto(100) { |x| s = x if (s = ['Fizz','',''][x % 3]+['Buzz','','','',''][x % 5]) == '' puts s } 【2008/11/30追記】ちょっと修正。こっちのほうがしっくりくるかも。(数値分のリテラル…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmjh.hatenadiary.org%2Fentry%2F20081129%2F1227969236&quot; title=&quot;遅まきながらFizzBuzz - mjh.日記＠渋谷 with TH55&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-11-29 23:33:56</published>
  <title>遅まきながらFizzBuzz</title>
  <type>rich</type>
  <url>https://mjh.hatenadiary.org/entry/20081129/1227969236</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
