{"blog_title":"Camera Obscura","version":"1.0","image_url":null,"description":"\u30e6\u30fc\u30af\u30ea\u30c3\u30c9\u306e\u4e92\u9664\u6cd5\uff08Euclidean Algorithm\uff09\u3092\u4f7f\u3063\u3066\u3001\u6700\u5927\u516c\u7d04\u6570\u3092\u6c42\u3081\u307e\u3059\u300299400891 \u3068 99221377 \u306e\u6700\u5927\u516c\u7d04\u6570\u306f 9973 \u3067\u3059\u3002\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3002\u518d\u5e30\u3092\u4f7f\u3046\u5178\u578b\u7684\u306a\u554f\u984c\u3067\u3057\u3087\u3046\u3002 def ea(m, n) return m if n == 0 ea(n, m % n) end puts ea(99400891, 99221377) #=>9973 \u3053\u308c\u3092\u4f7f\u3048\u3070\u3001\u6700\u5c0f\u516c\u500d\u6570\u3082\u7c21\u5358\u306b\u6c42\u3081\u3089\u308c\u307e\u3059\u3002 def lcml(m, n) m * n / ea(m, n) end puts lcml(48, 28) #=>336 \u4e09\u3064\u4ee5\u4e0a\u306e\u6570\u306e\u6700\u5927\u516c\u7d04\u6570\u3001\u6700\u5c0f\u516c\u500d\u2026","author_name":"obelisk2","provider_name":"Hatena Blog","height":"190","width":"100%","title":"\u30e6\u30fc\u30af\u30ea\u30c3\u30c9\u306e\u4e92\u9664\u6cd5\u3092 Ruby \u3067","url":"https://obelisk.hatenablog.com/entry/2015/10/01/171623","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobelisk.hatenablog.com%2Fentry%2F2015%2F10%2F01%2F171623\" title=\"\u30e6\u30fc\u30af\u30ea\u30c3\u30c9\u306e\u4e92\u9664\u6cd5\u3092 Ruby \u3067 - Camera Obscura\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2015-10-01 17:16:23","author_url":"https://blog.hatena.ne.jp/obelisk2/","categories":["Ruby","\u6570\u5b66"],"blog_url":"https://obelisk.hatenablog.com/","provider_url":"https://hatena.blog","type":"rich"}