{"author_url":"https://blog.hatena.ne.jp/obelisk2/","image_url":"http://img.f.hatena.ne.jp/images/fotolife/o/obelisk2/20180214/20180214012431.png","published":"2018-02-14 01:33:03","blog_title":"Camera Obscura","title":"\u6025\u304c\u3070\u56de\u308c\uff08Ruby\uff09","provider_name":"Hatena Blog","blog_url":"https://obelisk.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobelisk.hatenablog.com%2Fentry%2F2018%2F02%2F14%2F013303\" title=\"\u6025\u304c\u3070\u56de\u308c\uff08Ruby\uff09 - 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>","provider_url":"https://hatena.blog","height":"190","categories":["Ruby","\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u30fb\u30d1\u30ba\u30eb"],"author_name":"obelisk2","type":"rich","width":"100%","description":"\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u30fb\u30d1\u30ba\u30eb\u3067\u3059\u3002 \u554f\u984c\uff1a \u4e0a\u306e\u3088\u3046\u306a\u898f\u5247\u304c\u3042\u308a\u307e\u3059\u3002\u7e26\u304c 5cm\u3001\u6a2a\u304c 6cm \u306e\u9577\u65b9\u5f62\u306e\u5834\u5408\u3001A \u304b\u3089 B \u307e\u3067\u306e\u6700\u9577\u7d4c\u8def\u306f\u4f55 cm \u3067\u3057\u3087\u3046\u304b\u3002 Ruby \u3067\u89e3\u3044\u3066\u307f\u307e\u3057\u305f\u3002 q50.rb W, H = 6, 5 def yoko?(y) @yoko[y].inject(:+) < 2 end def tate?(x) @tate[x].inject(:+) < 2 end def search(x, y, co) if x == W and y == H @max = co if co > @max return end if x < W and yoko?(y) @yoko[\u2026","url":"https://obelisk.hatenablog.com/entry/2018/02/14/013303","version":"1.0"}