{"provider_url":"https://hatena.blog","title":"1 \u2266 x \u2266 6, 1 \u2266 y \u2266 6, `/`\u306f\u30b9\u30e9\u30c3\u30b7\u30e5\u8a18\u53f7\u306e\u3068\u304d\u3001`x / y`\u304c\u5168\u90e8\u3067\u4f55\u30d1\u30bf\u30fc\u30f3\u3042\u308b\u304b\u8abf\u3079\u305f\u3044","categories":[],"image_url":null,"height":"190","width":"100%","blog_title":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u65e5\u8a18","author_name":"cbttrainer","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/cbttrainer/","description":"\u3084\u308a\u305f\u3044\u3053\u3068 1 \u2266 x \u2266 6, 1 \u2266 y \u2266 6, /\u306f\u30b9\u30e9\u30c3\u30b7\u30e5\u8a18\u53f7\u306e\u3068\u304d\u3001x / y\u304c\u5168\u90e8\u3067\u4f55\u30d1\u30bf\u30fc\u30f3\u3042\u308b\u304b\u8abf\u3079\u305f\u3044\u3002 \u30b3\u30fc\u30c9 x = [1, 2, 3, 4, 5, 6] y = [1, 2, 3, 4, 5, 6] count = 0 x.each do |x_num| y.each do |y_num| puts \"#{x_num}/#{y_num}\" count += 1 end end puts count \u51fa\u529b\u7d50\u679c [algorithm]$ ruby six.rb 1/1 1/2 1/3 1/4 1/5 1/6 2/1 2/2 2/3 2/4 2/5 2/6 3/1 3/\u2026","url":"https://webenginieer34.hatenadiary.com/entry/2024/06/23/124854","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwebenginieer34.hatenadiary.com%2Fentry%2F2024%2F06%2F23%2F124854\" title=\"1 \u2266 x \u2266 6, 1 \u2266 y \u2266 6, `/`\u306f\u30b9\u30e9\u30c3\u30b7\u30e5\u8a18\u53f7\u306e\u3068\u304d\u3001`x / y`\u304c\u5168\u90e8\u3067\u4f55\u30d1\u30bf\u30fc\u30f3\u3042\u308b\u304b\u8abf\u3079\u305f\u3044 - \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2024-06-23 12:48:54","blog_url":"https://webenginieer34.hatenadiary.com/","version":"1.0"}