{"blog_title":"C#\u7df4\u7fd2\u65e5\u8a18","author_url":"https://blog.hatena.ne.jp/noriok/","image_url":null,"version":"1.0","type":"rich","author_name":"noriok","title":"Project Euler 40","categories":["PE","C#"],"blog_url":"https://noriok.hatenadiary.jp/","height":"190","url":"https://noriok.hatenadiary.jp/entry/2014/08/16/172438","provider_name":"Hatena Blog","published":"2014-08-16 17:24:38","provider_url":"https://hatena.blog","description":"Problem 40 10 \u304b\u3089 99 \u307e\u3067\u306e\u6574\u6570\u3092\u3064\u306a\u3052\u305f\u3068\u304d\u3001\u305d\u306e\u6841\u6570\u306f \u6841\u6570:2 * (100 - 10) \u3067\u3059\u3002 100 \u304b\u3089 999 \u307e\u3067\u306e\u6574\u6570\u3092\u3064\u306a\u304c\u305f\u3068\u304d\u3001\u305d\u306e\u6841\u6570\u306f \u6841\u6570:3 * (1000 - 100) \u3067\u3059\u3002 $ pry [3] pry(main)> x = 10 => 10 [4] pry(main)> x.to_s.length * (10*x - x) => 180 [5] pry(main)> (10..99).map(&:to_s).join.length => 180 [6] pry(main)> x = 100 => 100 [7] pry(main)> x.\u2026","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnoriok.hatenadiary.jp%2Fentry%2F2014%2F08%2F16%2F172438\" title=\"Project Euler 40 - C#\u7df4\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>"}