{"height":"190","url":"https://obelisk.hatenablog.com/entry/2015/12/04/002300","width":"100%","blog_url":"https://obelisk.hatenablog.com/","provider_name":"Hatena Blog","title":"\u6574\u6570\u30922\u6570\u306e\u7a4d\u306b\u5206\u3051\u308b/\u7d04\u6570\u3092\u6c42\u3081\u308b","version":"1.0","blog_title":"Camera Obscura","author_url":"https://blog.hatena.ne.jp/obelisk2/","published":"2015-12-04 00:23:00","description":"\u4f8b\u3048\u3070 48 \u306f\u30012 * 24, 3 * 16, 4 * 12, 6 * 8 \u306b\u5206\u3051\u3089\u308c\u307e\u3059\u306d\u3002\u3053\u308c\u3092 Ruby \u306e Integer#divide2 \u30e1\u30bd\u30c3\u30c9\u3068\u3057\u3066\u5b9f\u88c5\u3057\u307e\u3057\u305f\u3002\u30da\u30a2\u3092\u914d\u5217\u306b\u683c\u7d0d\u3057\u3066\u8fd4\u3057\u307e\u3059\uff08\u305d\u306e\u3088\u3046\u306a\u30da\u30a2\u304c\u306a\u3051\u308c\u3070\u3001\u7a7a\u306e\u914d\u5217\u3092\u8fd4\u3057\u307e\u3059\uff09\u3002\u5f15\u6570\u306b true \u3092\u53d6\u308c\u3070\u3001\u81ea\u660e\u306a 1 * 48 \u306e\u3088\u3046\u306a\u30da\u30a2\u3082\u542b\u307f\u307e\u3059\u3002 class Integer def divide2(include1=false) ar = [] s = include1 ? 1 : 2 for i in s..(self ** 0.5) ar.push([i, self / i]) if (self % i).\u2026","categories":["Ruby","\u6570\u5b66"],"author_name":"obelisk2","provider_url":"https://hatena.blog","type":"rich","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobelisk.hatenablog.com%2Fentry%2F2015%2F12%2F04%2F002300\" title=\"\u6574\u6570\u30922\u6570\u306e\u7a4d\u306b\u5206\u3051\u308b/\u7d04\u6570\u3092\u6c42\u3081\u308b - 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>"}