{"author_name":"acokikoy","categories":["Codewars","Python"],"url":"https://acokikoy.hatenablog.com/entry/2019/06/26/003430","provider_name":"Hatena Blog","height":"190","published":"2019-06-26 00:34:30","width":"100%","author_url":"https://blog.hatena.ne.jp/acokikoy/","title":"\u6bce\u671dCodewars@2019.06.25(\u706b): Sums of Parts","image_url":null,"provider_url":"https://hatena.blog","blog_title":"acokikoy's notes","type":"rich","blog_url":"https://acokikoy.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Facokikoy.hatenablog.com%2Fentry%2F2019%2F06%2F26%2F003430\" title=\"\u6bce\u671dCodewars@2019.06.25(\u706b): Sums of Parts - 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>","version":"1.0","description":"\u6bce\u671d\u3061\u3073\u3061\u3073Codewars\u3002 [6 kyu] Sums of Parts www.codewars.com \u4eca\u65e5\u306e\u304a\u984c\uff1a \"\"\" \u30ea\u30b9\u30c8\u306e\u5404\u8981\u7d20\u306b\u3064\u3044\u3066\u3001\u81ea\u5206\u3068\u81ea\u5206\u3088\u308a\u5f8c\u308d\u306e\u8981\u7d20\u306e\u548c\u3092\u30ea\u30b9\u30c8\u306b\u3057\u3066\u8fd4\u3059 \u4f8b: ls = [0, 1, 3, 6, 10] \u81ea\u5206\u3088\u308a\u5f8c\u308d\u306e\u8981\u7d20\u306f\u3001\u524d\u304b\u3089\u9806\u306b [0, 1, 3, 6, 10] -> \u548c\u306f 20 [1, 3, 6, 10] -> \u548c\u306f 20 [3, 6, 10] -> \u548c\u306f 19 [6, 10] -> \u548c\u306f 16 [10] -> \u548c\u306f 10 [] -> \u548c\u306f 0 \u5f93\u3063\u3066 [20, 20, 19, 16, 10, 0] \u3092\u8fd4\u3059 def Sums of P\u2026"}