{"blog_url":"https://ozy4dm.hateblo.jp/","url":"https://ozy4dm.hateblo.jp/entry/2018/04/26/170009","provider_name":"Hatena Blog","categories":[],"blog_title":"\u30ab\u30e1\u30f2\u30e9\u30dc","width":"100%","version":"1.0","author_name":"Ozy","author_url":"https://blog.hatena.ne.jp/Ozy/","type":"rich","title":"\u4e00\u756a\u5272\u308a\u7b97\u306e\u591a\u3044\u7d44\u307f\u5408\u308f\u305b\u306f\uff1f\u3010\u89e3\u8aac\u3011","height":"190","published":"2018-04-26 17:00:09","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fozy4dm.hateblo.jp%2Fentry%2F2018%2F04%2F26%2F170009\" title=\"\u4e00\u756a\u5272\u308a\u7b97\u306e\u591a\u3044\u7d44\u307f\u5408\u308f\u305b\u306f\uff1f\u3010\u89e3\u8aac\u3011 - \u30ab\u30e1\u30f2\u30e9\u30dc\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u672c\u7a3f\u306fCodeIQ\u30672014\u5e7411\u670810\u65e5\uff5e\u540c\u5e7412\u67081\u65e5\u306b\u51fa\u984c\u3055\u308c\u305f\u300c\u4e00\u756a\u5272\u308a\u7b97\u306e\u591a\u3044\u7d44\u307f\u5408\u308f\u305b\u306f\uff1f\u300d\u3068\u3044\u3046\u554f\u984c\u306e\u89e3\u6cd5\u306b\u95a2\u3059\u308b\u8a18\u4e8b\u3067\u3059\u3002 \u554f\u984c\u6587\u306f\u3053\u3061\u3089 \u4e00\u756a\u5272\u308a\u7b97\u306e\u591a\u3044\u7d44\u307f\u5408\u308f\u305b\u306f\uff1f\u3010\u89e3\u8aac\u3011 1\uff5en\u307e\u3067\u306e\u6574\u6570\u304b\u30892\u3064\u3092\u9078\u3076\u3059\u3079\u3066\u306e\u7d44\u307f\u5408\u308f\u305b\u306b\u3064\u3044\u3066\u7d20\u76f4\u306b\u30e6\u30fc\u30af\u30ea\u30c3\u30c9\u306e\u4e92\u9664\u6cd5\u3092\u9069\u7528\u3057\u3001\u9664\u7b97\u56de\u6570\u306e\u6700\u5927\u5024\u3092\u63a2\u3059\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3044\u3066\u307f\u307e\u3059\u3002\u4ee5\u4e0b\u306fRuby\u306e\u30b3\u30fc\u30c9\u3067\u3059\u3002 # a > b > 0 \u524d\u63d0\u3068\u3044\u3046\u3053\u3068\u3067\u3002 def count(a, b) c = 1 # \u9664\u7b97\u56de\u6570\u30ab\u30a6\u30f3\u30bf while b > 0 && a%b != 0 a, b = b, a%b c+=1 end c end n = ARGV[\u2026","provider_url":"https://hatena.blog","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/O/Ozy/20180408/20180408233536.jpg"}