{"id":5680,"date":"2022-10-11T05:26:24","date_gmt":"2022-10-10T20:26:24","guid":{"rendered":"https:\/\/suzutukiblog.com\/?p=5680"},"modified":"2022-10-17T10:24:24","modified_gmt":"2022-10-17T01:24:24","slug":"tips-11","status":"publish","type":"post","link":"https:\/\/suzutukiblog.com\/index.php\/2022\/10\/11\/tips-11\/","title":{"rendered":"TIPS(Ruby:\u7279\u5b9a\u306e\u6570\u5b57\u30841\u306e\u4f4d10\u306e\u4f4d\u306e\u5024\u3067\u6761\u4ef6\u5206\u5c90\u3059\u308b)"},"content":{"rendered":"<h3>\u76ee\u6a19\uff1a\u306a\u306b\u304c\u3057\u305f\u3044\u304b\uff1f<\/h3>\n<p>\u7279\u5b9a\u306e\u6570\u5b57\u30841\u306e\u4f4d10\u306e\u4f4d\u306e\u5024\u3067\u6761\u4ef6\u5206\u5c90\u3059\u308b\u65b9\u6cd5<\/p>\n<h3>\u554f\u984c<\/h3>\n<p>\u3042\u306a\u305f\u306f\u30de\u30f3\u30b7\u30e7\u30f3\u306b\u5f15\u3063\u8d8a\u3057\u3092\u8003\u3048\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3057\u304b\u3057\u3001\u5acc\u306a\u6570\u5b57\u304c\u3042\u308a\u3001\u305d\u306e\u6570\u5b57\u304c\u542b\u307e\u308c\u308b\u90e8\u5c4b\u756a\u53f7\u306e\u5165\u5c45\u3092\u907f\u3051\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\n\u305d\u3053\u3067\u3001\u4eca\u7a7a\u3044\u3066\u3044\u308b\u90e8\u5c4b\u306e\u3046\u3061\u3001\u90e8\u5c4b\u756a\u53f7\u306e\u3069\u306e\u6841\u306b\u3082\u5acc\u306a\u6570\u5b57\u304c\u542b\u307e\u308c\u3066\u3044\u306a\u3044\u90e8\u5c4b\u756a\u53f7\u3092\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u3057\u3066\u4f1d\u3048\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<h3>\u6761\u4ef6<\/h3>\n<p>1:\u4e00\u306e\u4f4d\u306b4\u304c\u542b\u307e\u308c\u308b\u90e8\u5c4b\u756a\u53f7 \u4f8b\uff1a104,204,304<br \/>\n2:13\u304c\u542b\u307e\u308c\u308b\u90e8\u5c4b\u756a\u53f7 \u4f8b\uff1a113,213,313<br \/>\n3:\u90e8\u5c4b\u756a\u53f7666<\/p>\n<p>\u30fb1\u884c\u76ee\u306b\u90e8\u5c4b\u306e\u7dcf\u6570 n<br \/>\n\u30fb2\u884c\u76ee\u4ee5\u964d\u306b\u5404\u90e8\u5c4b\u756a\u53f7\u3092\u8868\u3059\u6574\u6570 room_i (1 &lt;= i &lt;= m)<\/p>\n<p>\u304c\u6539\u884c\u533a\u5207\u308a\u3067\u4e0e\u3048\u3089\u308c\u308b\u306e\u3067\u3001\u5e0c\u671b\u3059\u308b\u30de\u30f3\u30b7\u30e7\u30f3\u306e\u90e8\u5c4b\u756a\u53f7\u3092\u3059\u3079\u3066\u6539\u884c\u533a\u5207\u308a\u3067\u51fa\u529b\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<h3>\u5165\u529b\u3055\u308c\u308b\u5024<\/h3>\n<p>\u5165\u529b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4e0e\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n<dl class=\"txt2\">\n<dd>\n<pre>n #\u90e8\u5c4b\u306e\u7dcf\u6570\r\nroom_1 #1\u500b\u76ee\u306e\u90e8\u5c4b\u756a\u53f7\r\nroom_2 #2\u500b\u76ee\u306e\u90e8\u5c4b\u756a\u53f7\r\n...\r\nroom_n #n\u500b\u76ee\u306e\u90e8\u5c4b\u756a\u53f7<\/pre>\n<\/dd>\n<\/dl>\n<p>\u305d\u308c\u305e\u308c\u306e\u5024\u306f\u6587\u5b57\u5217\u3067\u6a19\u6e96\u5165\u529b\u304b\u3089\u6e21\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>\u4e0e\u3048\u3089\u308c\u308b\u5165\u529b\u5024<\/h3>\n<pre>9\r\n101\r\n130 \r\n304 \r\n401 \r\n501\r\n666\r\n704\r\n813\r\n902<\/pre>\n<h3>\u671f\u5f85\u3059\u308b\u51fa\u529b<\/h3>\n<pre><code class=\"stdout ng-binding\">101\r\n130\r\n401\r\n501\r\n902<\/code><\/pre>\n<h3>\u30b3\u30fc\u30c9\u3068\u89e3\u8aac<\/h3>\n<pre>#1\u884c\u76ee\u306e\u5165\u529b\u5024\u3092\u53d7\u3051\u53d6\u308b\r\nn = gets.to_i\r\n\r\n#n\u56de\u7e70\u308a\u8fd4\u3059\r\nn.times do |i|\r\n\r\n#2\u884c\u540d\u4ee5\u964d\u306e\u5165\u529b\u5024\u3092\u53d7\u3051\u53d6\u308a\u30d0\u30e9\u30d0\u30e9\u306b\u3059\u308b \u4f8b\uff1a[\"1\", \"0\", \"1\"]\r\n  numbers = gets.chomp.chars\r\n#1\u306e\u4f4d\u304c4\u306e\u5834\u5408\u304b666\u306e\u5834\u5408\u306b\u5bfe\u5fdc\r\n  if numbers[-1] == \"4\" || numbers.join == \"666\"\r\n#1\u306e\u4f4d\u304c3\u306710\u306e\u4f4d\u304c1\u306e\u5834\u5408\u306b\u5bfe\u5fdc\u3057\u306613\u304c\u3042\u308b\u304b\u3069\u3046\u304b\u5bfe\u5fdc\u3059\u308b\r\n  elsif numbers[-1] == \"3\" &amp;&amp; numbers[-2] == \"1\"\r\n# \u4e0a\u8a18\u306e\u6761\u4ef6\u4ee5\u5916\u306e\u3068\u304d\u90e8\u5c4b\u756a\u53f7\u3092\u51fa\u529b\u3059\u308b\r\n  else puts numbers.join\r\n  end\r\nend<\/pre>\n<h2><a href=\"https:\/\/paiza.io\/ja\/projects\/new\">https:\/\/paiza.io\/ja\/projects\/new<\/a><\/h2>\n<h2>\u2191\u3053\u3061\u3089\u306b\u30b3\u30d4\u30da\u3057\u3066\u300c\u5b9f\u884c\u300d\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/h2>\n<h2>\u2193\u3053\u306e\u3088\u3046\u306a\u51fa\u529b\u7d50\u679c\u306b\u306a\u3063\u3066\u3044\u308c\u3070OK\u3067\u3059\u3002<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5684\" src=\"https:\/\/suzutukiblog.com\/wp-content\/uploads\/2022\/09\/f275a2ba608065db9ea13bf04ef0c0c9.png\" alt=\"\" width=\"189\" height=\"226\" \/><\/p>\n<h3>\u203b\u30dd\u30a4\u30f3\u30c8<\/h3>\n<p>\u5165\u529b\u5024\u304c301\u306e\u3068\u304dgets.chomp.chars\u3067[&#8220;1&#8221;, &#8220;0&#8221;, &#8220;1&#8221;]\u3068\u3072\u3068\u3064\u305a\u3064\u30d0\u30e9\u30d0\u30e9\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<p>\u4eca\u56de\u306f3\u6841\u306e\u6570\u5b57\u3060\u3063\u305f\u304c4\u6841\u4ee5\u4e0a\u306e\u5834\u5408\u3092\u8003\u3048\u3066\u3001<\/p>\n<p>\u914d\u5217\u306e[-1]\u3092\u4f7f\u3046\u3053\u3068\u30671\u306e\u4f4d\u3001[-2]\u306710\u306e\u4f4d\u3067\u6761\u4ef6\u5206\u5c90\u3057\u3066\u3084\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u6a19\uff1a\u306a\u306b\u304c\u3057\u305f\u3044\u304b\uff1f \u7279\u5b9a\u306e\u6570\u5b57\u30841\u306e\u4f4d10\u306e\u4f4d\u306e\u5024\u3067\u6761\u4ef6\u5206\u5c90\u3059\u308b\u65b9\u6cd5 \u554f\u984c \u3042\u306a\u305f\u306f\u30de\u30f3\u30b7\u30e7\u30f3\u306b\u5f15\u3063\u8d8a\u3057\u3092\u8003\u3048\u3066\u3044\u307e\u3059\u3002 \u3057\u304b\u3057\u3001\u5acc\u306a\u6570\u5b57\u304c\u3042\u308a\u3001\u305d\u306e\u6570\u5b57\u304c\u542b\u307e\u308c\u308b\u90e8\u5c4b\u756a\u53f7\u306e\u5165\u5c45\u3092\u907f\u3051\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002 \u305d\u3053\u3067\u3001\u4eca\u7a7a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2684,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[27,31,32],"tags":[],"class_list":["post-5680","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming-note","category-ruby","category-tips"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u76ee\u6a19\uff1a\u306a\u306b\u304c\u3057\u305f\u3044\u304b\uff1f \u7279\u5b9a\u306e\u6570\u5b57\u30841\u306e\u4f4d10\u306e\u4f4d\u306e\u5024\u3067\u6761\u4ef6\u5206\u5c90\u3059\u308b\u65b9\u6cd5 \u554f\u984c \u3042\u306a\u305f\u306f\u30de\u30f3\u30b7\u30e7\u30f3\u306b\u5f15\u3063\u8d8a\u3057\u3092\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"\u30aa\u30aa\u30bf\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/suzutukiblog.com\/index.php\/2022\/10\/11\/tips-11\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"ja_JP\" \/>\n\t\t<meta property=\"og:site_name\" content=\"\u3068\u3042\u308bIT\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30d6\u30ed\u30b0 \u2014 \u6bce\u65e5\u5c11\u3057\u305a\u3064\u6210\u9577\u3059\u308b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"TIPS(Ruby:\u7279\u5b9a\u306e\u6570\u5b57\u30841\u306e\u4f4d10\u306e\u4f4d\u306e\u5024\u3067\u6761\u4ef6\u5206\u5c90\u3059\u308b) \u2014 \u3068\u3042\u308bIT\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30d6\u30ed\u30b0\" \/>\n\t\t<meta property=\"og:description\" content=\"\u76ee\u6a19\uff1a\u306a\u306b\u304c\u3057\u305f\u3044\u304b\uff1f \u7279\u5b9a\u306e\u6570\u5b57\u30841\u306e\u4f4d10\u306e\u4f4d\u306e\u5024\u3067\u6761\u4ef6\u5206\u5c90\u3059\u308b\u65b9\u6cd5 \u554f\u984c \u3042\u306a\u305f\u306f\u30de\u30f3\u30b7\u30e7\u30f3\u306b\u5f15\u3063\u8d8a\u3057\u3092\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/suzutukiblog.com\/index.php\/2022\/10\/11\/tips-11\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/suzutukiblog.com\/wp-content\/uploads\/2020\/03\/cropped-cropped-markus-spiske-s7nlaF3kefg-unsplash-1.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/suzutukiblog.com\/wp-content\/uploads\/2020\/03\/cropped-cropped-markus-spiske-s7nlaF3kefg-unsplash-1.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"512\" \/>\n\t\t<meta property=\"og:image:height\" content=\"316\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2022-10-10T20:26:24+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-10-17T01:24:24+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"TIPS(Ruby:\u7279\u5b9a\u306e\u6570\u5b57\u30841\u306e\u4f4d10\u306e\u4f4d\u306e\u5024\u3067\u6761\u4ef6\u5206\u5c90\u3059\u308b) \u2014 \u3068\u3042\u308bIT\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30d6\u30ed\u30b0\" \/>\n\t\t<meta name=\"twitter:description\" content=\"\u76ee\u6a19\uff1a\u306a\u306b\u304c\u3057\u305f\u3044\u304b\uff1f \u7279\u5b9a\u306e\u6570\u5b57\u30841\u306e\u4f4d10\u306e\u4f4d\u306e\u5024\u3067\u6761\u4ef6\u5206\u5c90\u3059\u308b\u65b9\u6cd5 \u554f\u984c \u3042\u306a\u305f\u306f\u30de\u30f3\u30b7\u30e7\u30f3\u306b\u5f15\u3063\u8d8a\u3057\u3092\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/suzutukiblog.com\/wp-content\/uploads\/2020\/03\/cropped-cropped-markus-spiske-s7nlaF3kefg-unsplash-1.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/suzutukiblog.com\\\/index.php\\\/2022\\\/10\\\/11\\\/tips-11\\\/#blogposting\",\"name\":\"TIPS(Ruby:\\u7279\\u5b9a\\u306e\\u6570\\u5b57\\u30841\\u306e\\u4f4d10\\u306e\\u4f4d\\u306e\\u5024\\u3067\\u6761\\u4ef6\\u5206\\u5c90\\u3059\\u308b) \\u2014 \\u3068\\u3042\\u308bIT\\u30a8\\u30f3\\u30b8\\u30cb\\u30a2\\u306e\\u30d6\\u30ed\\u30b0\",\"headline\":\"TIPS(Ruby:\\u7279\\u5b9a\\u306e\\u6570\\u5b57\\u30841\\u306e\\u4f4d10\\u306e\\u4f4d\\u306e\\u5024\\u3067\\u6761\\u4ef6\\u5206\\u5c90\\u3059\\u308b)\",\"author\":{\"@id\":\"https:\\\/\\\/suzutukiblog.com\\\/index.php\\\/author\\\/reim\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/suzutukiblog.com\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/suzutukiblog.com\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/336cca2f2ddf7215eb36ee4969ef03d1.png\",\"width\":70,\"height\":84},\"datePublished\":\"2022-10-11T05:26:24+09:00\",\"dateModified\":\"2022-10-17T10:24:24+09:00\",\"inLanguage\":\"ja\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/suzutukiblog.com\\\/index.php\\\/2022\\\/10\\\/11\\\/tips-11\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/suzutukiblog.com\\\/index.php\\\/2022\\\/10\\\/11\\\/tips-11\\\/#webpage\"},\"articleSection\":\"Programming note, Ruby, TIPS\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/suzutukiblog.com\\\/index.php\\\/2022\\\/10\\\/11\\\/tips-11\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/suzutukiblog.com#listItem\",\"position\":1,\"name\":\"\\u30db\\u30fc\\u30e0\",\"item\":\"https:\\\/\\\/suzutukiblog.com\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/suzutukiblog.com\\\/index.php\\\/category\\\/programming-note\\\/#listItem\",\"name\":\"Programming note\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/suzutukiblog.com\\\/index.php\\\/category\\\/programming-note\\\/#listItem\",\"position\":2,\"name\":\"Programming note\",\"item\":\"https:\\\/\\\/suzutukiblog.com\\\/index.php\\\/category\\\/programming-note\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/suzutukiblog.com\\\/index.php\\\/2022\\\/10\\\/11\\\/tips-11\\\/#listItem\",\"name\":\"TIPS(Ruby:\\u7279\\u5b9a\\u306e\\u6570\\u5b57\\u30841\\u306e\\u4f4d10\\u306e\\u4f4d\\u306e\\u5024\\u3067\\u6761\\u4ef6\\u5206\\u5c90\\u3059\\u308b)\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/suzutukiblog.com#listItem\",\"name\":\"\\u30db\\u30fc\\u30e0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/suzutukiblog.com\\\/index.php\\\/2022\\\/10\\\/11\\\/tips-11\\\/#listItem\",\"position\":3,\"name\":\"TIPS(Ruby:\\u7279\\u5b9a\\u306e\\u6570\\u5b57\\u30841\\u306e\\u4f4d10\\u306e\\u4f4d\\u306e\\u5024\\u3067\\u6761\\u4ef6\\u5206\\u5c90\\u3059\\u308b)\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/suzutukiblog.com\\\/index.php\\\/category\\\/programming-note\\\/#listItem\",\"name\":\"Programming note\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/suzutukiblog.com\\\/#person\",\"name\":\"\\u30aa\\u30aa\\u30bf\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/suzutukiblog.com\\\/index.php\\\/2022\\\/10\\\/11\\\/tips-11\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a1120b253cda8359b20b212f47db49986c2aa710b6ba6ef5825e6871bdbb9c10?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"\\u30aa\\u30aa\\u30bf\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/suzutukiblog.com\\\/index.php\\\/author\\\/reim\\\/#author\",\"url\":\"https:\\\/\\\/suzutukiblog.com\\\/index.php\\\/author\\\/reim\\\/\",\"name\":\"\\u30aa\\u30aa\\u30bf\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/suzutukiblog.com\\\/index.php\\\/2022\\\/10\\\/11\\\/tips-11\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a1120b253cda8359b20b212f47db49986c2aa710b6ba6ef5825e6871bdbb9c10?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"\\u30aa\\u30aa\\u30bf\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/suzutukiblog.com\\\/index.php\\\/2022\\\/10\\\/11\\\/tips-11\\\/#webpage\",\"url\":\"https:\\\/\\\/suzutukiblog.com\\\/index.php\\\/2022\\\/10\\\/11\\\/tips-11\\\/\",\"name\":\"TIPS(Ruby:\\u7279\\u5b9a\\u306e\\u6570\\u5b57\\u30841\\u306e\\u4f4d10\\u306e\\u4f4d\\u306e\\u5024\\u3067\\u6761\\u4ef6\\u5206\\u5c90\\u3059\\u308b) \\u2014 \\u3068\\u3042\\u308bIT\\u30a8\\u30f3\\u30b8\\u30cb\\u30a2\\u306e\\u30d6\\u30ed\\u30b0\",\"description\":\"\\u76ee\\u6a19\\uff1a\\u306a\\u306b\\u304c\\u3057\\u305f\\u3044\\u304b\\uff1f \\u7279\\u5b9a\\u306e\\u6570\\u5b57\\u30841\\u306e\\u4f4d10\\u306e\\u4f4d\\u306e\\u5024\\u3067\\u6761\\u4ef6\\u5206\\u5c90\\u3059\\u308b\\u65b9\\u6cd5 \\u554f\\u984c \\u3042\\u306a\\u305f\\u306f\\u30de\\u30f3\\u30b7\\u30e7\\u30f3\\u306b\\u5f15\\u3063\\u8d8a\\u3057\\u3092\",\"inLanguage\":\"ja\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/suzutukiblog.com\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/suzutukiblog.com\\\/index.php\\\/2022\\\/10\\\/11\\\/tips-11\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/suzutukiblog.com\\\/index.php\\\/author\\\/reim\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/suzutukiblog.com\\\/index.php\\\/author\\\/reim\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/suzutukiblog.com\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/336cca2f2ddf7215eb36ee4969ef03d1.png\",\"@id\":\"https:\\\/\\\/suzutukiblog.com\\\/index.php\\\/2022\\\/10\\\/11\\\/tips-11\\\/#mainImage\",\"width\":70,\"height\":84},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/suzutukiblog.com\\\/index.php\\\/2022\\\/10\\\/11\\\/tips-11\\\/#mainImage\"},\"datePublished\":\"2022-10-11T05:26:24+09:00\",\"dateModified\":\"2022-10-17T10:24:24+09:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/suzutukiblog.com\\\/#website\",\"url\":\"https:\\\/\\\/suzutukiblog.com\\\/\",\"name\":\"\\u3068\\u3042\\u308bIT\\u30a8\\u30f3\\u30b8\\u30cb\\u30a2\\u5fd7\\u671b\\u306e\\u30d6\\u30ed\\u30b0\",\"description\":\"\\u6bce\\u65e5\\u5c11\\u3057\\u305a\\u3064\\u6210\\u9577\\u3059\\u308b\",\"inLanguage\":\"ja\",\"publisher\":{\"@id\":\"https:\\\/\\\/suzutukiblog.com\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"TIPS(Ruby:\u7279\u5b9a\u306e\u6570\u5b57\u30841\u306e\u4f4d10\u306e\u4f4d\u306e\u5024\u3067\u6761\u4ef6\u5206\u5c90\u3059\u308b) \u2014 \u3068\u3042\u308bIT\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30d6\u30ed\u30b0","description":"\u76ee\u6a19\uff1a\u306a\u306b\u304c\u3057\u305f\u3044\u304b\uff1f \u7279\u5b9a\u306e\u6570\u5b57\u30841\u306e\u4f4d10\u306e\u4f4d\u306e\u5024\u3067\u6761\u4ef6\u5206\u5c90\u3059\u308b\u65b9\u6cd5 \u554f\u984c \u3042\u306a\u305f\u306f\u30de\u30f3\u30b7\u30e7\u30f3\u306b\u5f15\u3063\u8d8a\u3057\u3092","canonical_url":"https:\/\/suzutukiblog.com\/index.php\/2022\/10\/11\/tips-11\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/suzutukiblog.com\/index.php\/2022\/10\/11\/tips-11\/#blogposting","name":"TIPS(Ruby:\u7279\u5b9a\u306e\u6570\u5b57\u30841\u306e\u4f4d10\u306e\u4f4d\u306e\u5024\u3067\u6761\u4ef6\u5206\u5c90\u3059\u308b) \u2014 \u3068\u3042\u308bIT\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30d6\u30ed\u30b0","headline":"TIPS(Ruby:\u7279\u5b9a\u306e\u6570\u5b57\u30841\u306e\u4f4d10\u306e\u4f4d\u306e\u5024\u3067\u6761\u4ef6\u5206\u5c90\u3059\u308b)","author":{"@id":"https:\/\/suzutukiblog.com\/index.php\/author\/reim\/#author"},"publisher":{"@id":"https:\/\/suzutukiblog.com\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/suzutukiblog.com\/wp-content\/uploads\/2021\/04\/336cca2f2ddf7215eb36ee4969ef03d1.png","width":70,"height":84},"datePublished":"2022-10-11T05:26:24+09:00","dateModified":"2022-10-17T10:24:24+09:00","inLanguage":"ja","mainEntityOfPage":{"@id":"https:\/\/suzutukiblog.com\/index.php\/2022\/10\/11\/tips-11\/#webpage"},"isPartOf":{"@id":"https:\/\/suzutukiblog.com\/index.php\/2022\/10\/11\/tips-11\/#webpage"},"articleSection":"Programming note, Ruby, TIPS"},{"@type":"BreadcrumbList","@id":"https:\/\/suzutukiblog.com\/index.php\/2022\/10\/11\/tips-11\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/suzutukiblog.com#listItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/suzutukiblog.com","nextItem":{"@type":"ListItem","@id":"https:\/\/suzutukiblog.com\/index.php\/category\/programming-note\/#listItem","name":"Programming note"}},{"@type":"ListItem","@id":"https:\/\/suzutukiblog.com\/index.php\/category\/programming-note\/#listItem","position":2,"name":"Programming note","item":"https:\/\/suzutukiblog.com\/index.php\/category\/programming-note\/","nextItem":{"@type":"ListItem","@id":"https:\/\/suzutukiblog.com\/index.php\/2022\/10\/11\/tips-11\/#listItem","name":"TIPS(Ruby:\u7279\u5b9a\u306e\u6570\u5b57\u30841\u306e\u4f4d10\u306e\u4f4d\u306e\u5024\u3067\u6761\u4ef6\u5206\u5c90\u3059\u308b)"},"previousItem":{"@type":"ListItem","@id":"https:\/\/suzutukiblog.com#listItem","name":"\u30db\u30fc\u30e0"}},{"@type":"ListItem","@id":"https:\/\/suzutukiblog.com\/index.php\/2022\/10\/11\/tips-11\/#listItem","position":3,"name":"TIPS(Ruby:\u7279\u5b9a\u306e\u6570\u5b57\u30841\u306e\u4f4d10\u306e\u4f4d\u306e\u5024\u3067\u6761\u4ef6\u5206\u5c90\u3059\u308b)","previousItem":{"@type":"ListItem","@id":"https:\/\/suzutukiblog.com\/index.php\/category\/programming-note\/#listItem","name":"Programming note"}}]},{"@type":"Person","@id":"https:\/\/suzutukiblog.com\/#person","name":"\u30aa\u30aa\u30bf","image":{"@type":"ImageObject","@id":"https:\/\/suzutukiblog.com\/index.php\/2022\/10\/11\/tips-11\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/a1120b253cda8359b20b212f47db49986c2aa710b6ba6ef5825e6871bdbb9c10?s=96&d=mm&r=g","width":96,"height":96,"caption":"\u30aa\u30aa\u30bf"}},{"@type":"Person","@id":"https:\/\/suzutukiblog.com\/index.php\/author\/reim\/#author","url":"https:\/\/suzutukiblog.com\/index.php\/author\/reim\/","name":"\u30aa\u30aa\u30bf","image":{"@type":"ImageObject","@id":"https:\/\/suzutukiblog.com\/index.php\/2022\/10\/11\/tips-11\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/a1120b253cda8359b20b212f47db49986c2aa710b6ba6ef5825e6871bdbb9c10?s=96&d=mm&r=g","width":96,"height":96,"caption":"\u30aa\u30aa\u30bf"}},{"@type":"WebPage","@id":"https:\/\/suzutukiblog.com\/index.php\/2022\/10\/11\/tips-11\/#webpage","url":"https:\/\/suzutukiblog.com\/index.php\/2022\/10\/11\/tips-11\/","name":"TIPS(Ruby:\u7279\u5b9a\u306e\u6570\u5b57\u30841\u306e\u4f4d10\u306e\u4f4d\u306e\u5024\u3067\u6761\u4ef6\u5206\u5c90\u3059\u308b) \u2014 \u3068\u3042\u308bIT\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30d6\u30ed\u30b0","description":"\u76ee\u6a19\uff1a\u306a\u306b\u304c\u3057\u305f\u3044\u304b\uff1f \u7279\u5b9a\u306e\u6570\u5b57\u30841\u306e\u4f4d10\u306e\u4f4d\u306e\u5024\u3067\u6761\u4ef6\u5206\u5c90\u3059\u308b\u65b9\u6cd5 \u554f\u984c \u3042\u306a\u305f\u306f\u30de\u30f3\u30b7\u30e7\u30f3\u306b\u5f15\u3063\u8d8a\u3057\u3092","inLanguage":"ja","isPartOf":{"@id":"https:\/\/suzutukiblog.com\/#website"},"breadcrumb":{"@id":"https:\/\/suzutukiblog.com\/index.php\/2022\/10\/11\/tips-11\/#breadcrumblist"},"author":{"@id":"https:\/\/suzutukiblog.com\/index.php\/author\/reim\/#author"},"creator":{"@id":"https:\/\/suzutukiblog.com\/index.php\/author\/reim\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/suzutukiblog.com\/wp-content\/uploads\/2021\/04\/336cca2f2ddf7215eb36ee4969ef03d1.png","@id":"https:\/\/suzutukiblog.com\/index.php\/2022\/10\/11\/tips-11\/#mainImage","width":70,"height":84},"primaryImageOfPage":{"@id":"https:\/\/suzutukiblog.com\/index.php\/2022\/10\/11\/tips-11\/#mainImage"},"datePublished":"2022-10-11T05:26:24+09:00","dateModified":"2022-10-17T10:24:24+09:00"},{"@type":"WebSite","@id":"https:\/\/suzutukiblog.com\/#website","url":"https:\/\/suzutukiblog.com\/","name":"\u3068\u3042\u308bIT\u30a8\u30f3\u30b8\u30cb\u30a2\u5fd7\u671b\u306e\u30d6\u30ed\u30b0","description":"\u6bce\u65e5\u5c11\u3057\u305a\u3064\u6210\u9577\u3059\u308b","inLanguage":"ja","publisher":{"@id":"https:\/\/suzutukiblog.com\/#person"}}]},"og:locale":"ja_JP","og:site_name":"\u3068\u3042\u308bIT\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30d6\u30ed\u30b0 \u2014 \u6bce\u65e5\u5c11\u3057\u305a\u3064\u6210\u9577\u3059\u308b","og:type":"article","og:title":"TIPS(Ruby:\u7279\u5b9a\u306e\u6570\u5b57\u30841\u306e\u4f4d10\u306e\u4f4d\u306e\u5024\u3067\u6761\u4ef6\u5206\u5c90\u3059\u308b) \u2014 \u3068\u3042\u308bIT\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30d6\u30ed\u30b0","og:description":"\u76ee\u6a19\uff1a\u306a\u306b\u304c\u3057\u305f\u3044\u304b\uff1f \u7279\u5b9a\u306e\u6570\u5b57\u30841\u306e\u4f4d10\u306e\u4f4d\u306e\u5024\u3067\u6761\u4ef6\u5206\u5c90\u3059\u308b\u65b9\u6cd5 \u554f\u984c \u3042\u306a\u305f\u306f\u30de\u30f3\u30b7\u30e7\u30f3\u306b\u5f15\u3063\u8d8a\u3057\u3092","og:url":"https:\/\/suzutukiblog.com\/index.php\/2022\/10\/11\/tips-11\/","og:image":"https:\/\/suzutukiblog.com\/wp-content\/uploads\/2020\/03\/cropped-cropped-markus-spiske-s7nlaF3kefg-unsplash-1.jpg","og:image:secure_url":"https:\/\/suzutukiblog.com\/wp-content\/uploads\/2020\/03\/cropped-cropped-markus-spiske-s7nlaF3kefg-unsplash-1.jpg","og:image:width":512,"og:image:height":316,"article:published_time":"2022-10-10T20:26:24+00:00","article:modified_time":"2022-10-17T01:24:24+00:00","twitter:card":"summary","twitter:title":"TIPS(Ruby:\u7279\u5b9a\u306e\u6570\u5b57\u30841\u306e\u4f4d10\u306e\u4f4d\u306e\u5024\u3067\u6761\u4ef6\u5206\u5c90\u3059\u308b) \u2014 \u3068\u3042\u308bIT\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30d6\u30ed\u30b0","twitter:description":"\u76ee\u6a19\uff1a\u306a\u306b\u304c\u3057\u305f\u3044\u304b\uff1f \u7279\u5b9a\u306e\u6570\u5b57\u30841\u306e\u4f4d10\u306e\u4f4d\u306e\u5024\u3067\u6761\u4ef6\u5206\u5c90\u3059\u308b\u65b9\u6cd5 \u554f\u984c \u3042\u306a\u305f\u306f\u30de\u30f3\u30b7\u30e7\u30f3\u306b\u5f15\u3063\u8d8a\u3057\u3092","twitter:image":"https:\/\/suzutukiblog.com\/wp-content\/uploads\/2020\/03\/cropped-cropped-markus-spiske-s7nlaF3kefg-unsplash-1.jpg"},"aioseo_meta_data":{"post_id":"5680","title":null,"description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2022-09-23 20:26:24","updated":"2025-06-04 17:41:52","seo_analyzer_scan_date":null},"_links":{"self":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts\/5680","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/comments?post=5680"}],"version-history":[{"count":6,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts\/5680\/revisions"}],"predecessor-version":[{"id":5687,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/posts\/5680\/revisions\/5687"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/media\/2684"}],"wp:attachment":[{"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/media?parent=5680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/categories?post=5680"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/suzutukiblog.com\/index.php\/wp-json\/wp\/v2\/tags?post=5680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}