{"categories":[],"image_url":null,"url":"https://rubytips86.hatenablog.com/entry/2014/04/03/112116","height":"190","provider_url":"https://hatena.blog","title":"\u6700\u5927\u516c\u7d04\u6570\u30fb\u6700\u5c0f\u516c\u500d\u6570\u3092\u6c42\u3081\u308b","blog_url":"https://rubytips86.hatenablog.com/","blog_title":"Ruby Tips!","provider_name":"Hatena Blog","description":"\u6700\u5927\u516c\u7d04\u6570\u306fInteger#gcd\u3067\u3001\u6700\u5c0f\u516c\u500d\u6570\u306fInteger#lcm\u3067\u6c42\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002\u307e\u305fInteger#gcdlcm\u306f\u6700\u5927\u516c\u7d04\u6570\u3068\u6700\u5c0f\u516c\u500d\u6570\u3092\u540c\u6642\u306b\u6c42\u3081\u3066\u914d\u5217\u3067\u8fd4\u3059\u3002 p 624.gcd(735) #=> 3 p 624.lcm(735) #=> 152880 p 624.gcdlcm(735) #=> [3, 152880] \u306a\u304aRuby 1.8\u3067\u306f\u3053\u308c\u3089\u306e\u30e1\u30bd\u30c3\u30c9\u306frational\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u62e1\u5f35\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001rational\u30e9\u30a4\u30d6\u30e9\u30ea\u3092require\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002","published":"2014-04-03 11:21:16","author_name":"rubytips86","version":"1.0","width":"100%","type":"rich","author_url":"https://blog.hatena.ne.jp/rubytips86/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frubytips86.hatenablog.com%2Fentry%2F2014%2F04%2F03%2F112116\" title=\"\u6700\u5927\u516c\u7d04\u6570\u30fb\u6700\u5c0f\u516c\u500d\u6570\u3092\u6c42\u3081\u308b - Ruby Tips!\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}