{"author_name":"ledsun","blog_url":"https://ledsun.hatenablog.com/","published":"2022-09-09 13:52:10","description":"sumim.hatenablog.com \u306e\u8ffd\u8a66\u3067\u3059\u3002 \u8907\u6570\u306eRuby\u5b9f\u88c5\u3067\u901f\u3055\u306e\u9055\u3044\u3092\u6bd4\u3079\u3066\u307f\u307e\u3059\u3002 \u30b9\u30af\u30ea\u30d7\u30c8 require 'benchmark' def tak(x, y, z) if x > y then tak(tak(x-1, y, z), tak(y-1, z, x), tak(z-1, x, y)) else y end end Benchmark.bm do |x| x.report do tak(14, 7, 0) end end Ruby 3.1.2preview2 ledsun@MSI:~/tarai\u25baruby -v tarai.rb ruby 3.1.2p20 (\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fledsun.hatenablog.com%2Fentry%2F2022%2F09%2F09%2F135210\" title=\"Ruby\u8907\u6570\u306e\u5b9f\u88c5\u3067\u305f\u3089\u3044\u56de\u3057\u30d9\u30f3\u30c1\u30de\u30fc\u30af - @ledsun blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"Ruby\u8907\u6570\u306e\u5b9f\u88c5\u3067\u305f\u3089\u3044\u56de\u3057\u30d9\u30f3\u30c1\u30de\u30fc\u30af","author_url":"https://blog.hatena.ne.jp/ledsun/","url":"https://ledsun.hatenablog.com/entry/2022/09/09/135210","provider_name":"Hatena Blog","height":"190","image_url":null,"blog_title":"@ledsun blog","type":"rich","width":"100%","categories":["Ruby","\u6280"],"version":"1.0","provider_url":"https://hatena.blog"}