{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobelisk.hatenablog.com%2Fentry%2F2015%2F09%2F19%2F031832\" title=\"n\u9032\u6570\u304b\u3089 10\u9032\u6570\u3078\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>","version":"1.0","height":"190","author_url":"https://blog.hatena.ne.jp/obelisk2/","provider_url":"https://hatena.blog","published":"2015-09-19 03:18:32","description":"Ruby \u3067 10\u9032\u6570\u3092 n\u9032\u6570\u306b\u76f4\u3059\u306e\u306f int.to_s \u3067\u51fa\u6765\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u305d\u306e\u9006\uff08n\u9032\u6570\u304b\u3089 10\u9032\u6570\u3078\uff09\u304c\u3067\u304d\u308b\u304b\u308f\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u30e1\u30bd\u30c3\u30c9\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002\u305f\u3060\u3057\u3001n \u306f 2 \u304b\u3089 10 \u307e\u3067\u3067\u3059\u3002\u30a2\u30eb\u30d5\u30a1\u30d9\u30c3\u30c8\u3092\u4f7f\u3063\u3066\u300136\u9032\u6570\u307e\u3067\u51fa\u6765\u306a\u3044\u3053\u3068\u306f\u306a\u3044\u3067\u3059\u304c\u3001\u3068\u308a\u3042\u3048\u305a\u3002\u306a\u304a\u3001\u4e0d\u5177\u5408\u304c\u3042\u308b\u3068 nil \u3092\u8fd4\u3057\u307e\u3059\u3002 #n\u9032\u6570\u306ei(String)\u309210\u9032\u6570\u306b\u5909\u63db\u3059\u308b\u3002\u305f\u3060\u3057n\u306f2\u304b\u308910\u3002 def dec(i, n) return nil if n < 2 or n > 10 x = 0 for j in 0..(i.length - 1) return nil unless (a \u2026","url":"https://obelisk.hatenablog.com/entry/2015/09/19/031832","width":"100%","author_name":"obelisk2","image_url":null,"blog_url":"https://obelisk.hatenablog.com/","categories":["Ruby","\u6570\u5b66"],"title":"n\u9032\u6570\u304b\u3089 10\u9032\u6570\u3078\uff08Ruby\uff09","provider_name":"Hatena Blog","blog_title":"Camera Obscura","type":"rich"}