{"height":"190","provider_url":"https://hatena.blog","blog_url":"https://acokikoy.hatenablog.com/","url":"https://acokikoy.hatenablog.com/entry/2019/05/27/202329","author_name":"acokikoy","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/acokikoy/","image_url":null,"title":"\u6bce\u671dCodewars@2019.05.21(\u706b)-23(\u6728): How Many Numbers? II","type":"rich","width":"100%","description":"\u6bce\u671d\u3061\u3073\u3061\u3073Codewars\u3002 How Many Numbers? II [5 kyu] www.codewars.com \u4eca\u65e5\u306e\u304a\u984c\uff1a \"\"\"max_sumDig(nMax, maxSum) 1000 \u4ee5\u4e0a nMax \u4ee5\u4e0b\u306e\u7bc4\u56f2\u306e\u6574\u6570\u306b\u3064\u3044\u3066\u3001 \u3069\u306e4\u6841\u3092\u3068\u3063\u3066\u3082 \u5404\u6841\u306e\u6570\u5024\u306e\u548c\u304c maxSum\u4ee5\u4e0b\u3067\u3042\u308b\u3088\u3046\u306a\u6570\u5024\u3092\u6c42\u3081\u308b\u3002 \u4f8b\u3048\u3070\u30016\u6841\u306e\u6574\u6570 d1d2d3dd4d5d6 \u306b\u3064\u3044\u3066\u3001 d1 + d2 + d3 + d4 <= maxSum d2 + d3 + d4 + d5 <= maxSum d3 + d4 + d5 + d6 <= maxSum \u306a\u3089\u3001\u3053\u306e\u6570\u5024\u306f\u6761\u4ef6\u3092\u6e80\u305f\u3059\u3068\u3044\u3048\u308b\u3002 A\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Facokikoy.hatenablog.com%2Fentry%2F2019%2F05%2F27%2F202329\" title=\"\u6bce\u671dCodewars@2019.05.21(\u706b)-23(\u6728): How Many Numbers? II - acokikoy&#39;s notes\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Codewars","Python"],"version":"1.0","published":"2019-05-27 20:23:29","blog_title":"acokikoy's notes"}