{"description":"\u524d\u56de \u3075\u3068\u6c17\u3065\u3044\u305f\u306e\u3060\u304c\u3001\u3053\u306e\u554f\u984c\u3063\u3066reduce\u3058\u3083\u306a\u304f\u3066reductions\u3067\u66f8\u3051\u3070\u3001\u300cf\u306e\u4e2d\u3067vector\u3092\u4f5c\u6210\u3057\u3066\u305d\u308c\u3092\u623b\u308a\u5024\u306evector\u306b\u5165\u308c\u3066\u30fb\u30fb\u30fb\u300d\u3068\u3044\u3046vector\u5165\u308c\u5b50\u72b6\u614b\u3092\u907f\u3051\u3089\u308c\u308b\u3002 (def coins [500 100 50 10 5 1]) (defn f [[last-count remain] coin] ((juxt quot rem) remain coin)) (defn get-coins-reductions [n] (->> coins (reductions f [nil n]) next (map first))) \u6700\u7d42\u7d50\u679c\u3068\u3057\u3066\u6b8b\u3057\u305f\u3044\u6570\u5024\u3068\u2026","blog_url":"https://zehnpaard.hatenablog.com/","provider_url":"https://hatena.blog","version":"1.0","blog_title":"Arantium Maestum","height":"190","image_url":null,"published":"2016-05-06 12:42:31","url":"https://zehnpaard.hatenablog.com/entry/2016/05/06/124231","provider_name":"Hatena Blog","categories":["Clojure","IT\u901f\u5831"],"title":"\u7c21\u5358\u306a\u786c\u8ca8\u554f\u984c from IT\u901f\u5831\uff12","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzehnpaard.hatenablog.com%2Fentry%2F2016%2F05%2F06%2F124231\" title=\"\u7c21\u5358\u306a\u786c\u8ca8\u554f\u984c from IT\u901f\u5831\uff12 - Arantium Maestum\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"zehnpaard","width":"100%","type":"rich","author_url":"https://blog.hatena.ne.jp/zehnpaard/"}